123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- Encapsed strings
- -----
- <?php
- "$A";
- "$A->B";
- "$A[B]";
- "$A[0]";
- "$A[1234]";
- "$A[9223372036854775808]";
- "$A[000]";
- "$A[0x0]";
- "$A[0b0]";
- "$A[$B]";
- "{$A}";
- "{$A['B']}";
- "${A}";
- "${A['B']}";
- "${$A}";
- "\{$A}";
- "\{ $A }";
- "\\{$A}";
- "\\{ $A }";
- "{$$A}[B]";
- "$$A[B]";
- "A $B C";
- b"$A";
- B"$A";
- -----
- array(
- 0: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 1: Scalar_Encapsed(
- parts: array(
- 0: Expr_PropertyFetch(
- var: Expr_Variable(
- name: A
- )
- name: B
- )
- )
- )
- 2: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: B
- )
- )
- )
- )
- 3: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_LNumber(
- value: 0
- )
- )
- )
- )
- 4: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_LNumber(
- value: 1234
- )
- )
- )
- )
- 5: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: 9223372036854775808
- )
- )
- )
- )
- 6: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: 000
- )
- )
- )
- )
- 7: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: 0x0
- )
- )
- )
- )
- 8: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: 0b0
- )
- )
- )
- )
- 9: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Expr_Variable(
- name: B
- )
- )
- )
- )
- 10: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 11: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: B
- )
- )
- )
- )
- 12: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 13: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: B
- )
- )
- )
- )
- 14: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: Expr_Variable(
- name: A
- )
- )
- )
- )
- 15: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: \{
- )
- 1: Expr_Variable(
- name: A
- )
- 2: Scalar_EncapsedStringPart(
- value: }
- )
- )
- )
- 16: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: \{
- )
- 1: Expr_Variable(
- name: A
- )
- 2: Scalar_EncapsedStringPart(
- value: }
- )
- )
- )
- 17: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: \
- )
- 1: Expr_Variable(
- name: A
- )
- )
- )
- 18: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: \{
- )
- 1: Expr_Variable(
- name: A
- )
- 2: Scalar_EncapsedStringPart(
- value: }
- )
- )
- )
- 19: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: Expr_Variable(
- name: A
- )
- )
- 1: Scalar_EncapsedStringPart(
- value: [B]
- )
- )
- )
- 20: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: $
- )
- 1: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: A
- )
- dim: Scalar_String(
- value: B
- )
- )
- )
- )
- 21: Scalar_Encapsed(
- parts: array(
- 0: Scalar_EncapsedStringPart(
- value: A
- )
- 1: Expr_Variable(
- name: B
- )
- 2: Scalar_EncapsedStringPart(
- value: C
- )
- )
- )
- 22: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- 23: Scalar_Encapsed(
- parts: array(
- 0: Expr_Variable(
- name: A
- )
- )
- )
- )
|