| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- Unicode escape sequence
- -----
- <?php
- "\u{0}";
- "\u{114}$foo";
- `\u{1F602}$bar`;
- -----
- array(
- 0: Stmt_Expression(
- expr: Scalar_String(
- value: @@{"\0"}@@
- )
- )
- 1: Stmt_Expression(
- expr: Scalar_InterpolatedString(
- parts: array(
- 0: InterpolatedStringPart(
- value: Ĕ
- )
- 1: Expr_Variable(
- name: foo
- )
- )
- )
- )
- 2: Stmt_Expression(
- expr: Expr_ShellExec(
- parts: array(
- 0: InterpolatedStringPart(
- value: @@{"\xF0\x9F\x98\x82"}@@
- )
- 1: Expr_Variable(
- name: bar
- )
- )
- )
- )
- )
- -----
- <?php
- "\u{0}";
- "\u{114}$foo";
- `\u{1F602}$bar`;
- -----
- !!version=5.6
- array(
- 0: Stmt_Expression(
- expr: Scalar_String(
- value: \u{0}
- )
- )
- 1: Stmt_Expression(
- expr: Scalar_InterpolatedString(
- parts: array(
- 0: InterpolatedStringPart(
- value: \u{114}
- )
- 1: Expr_Variable(
- name: foo
- )
- )
- )
- )
- 2: Stmt_Expression(
- expr: Expr_ShellExec(
- parts: array(
- 0: InterpolatedStringPart(
- value: \u{1F602}
- )
- 1: Expr_Variable(
- name: bar
- )
- )
- )
- )
- )
- -----
- <?php
- "\u{FFFFFFFFFFFFFFFF}";
- -----
- Invalid UTF-8 codepoint escape sequence: Codepoint too large on line 2
|