123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- Encapsed string negative var offsets
- -----
- <?php
- "$a[-0]";
- "$a[-1]";
- "$a[-0x0]";
- "$a[-00]";
- "$a[@@{ -PHP_INT_MAX - 1 }@@]";
- -----
- !!php7
- array(
- 0: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: -0
- )
- )
- )
- )
- 1: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_LNumber(
- value: -1
- )
- )
- )
- )
- 2: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: -0x0
- )
- )
- )
- )
- 3: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_String(
- value: -00
- )
- )
- )
- )
- 4: Scalar_Encapsed(
- parts: array(
- 0: Expr_ArrayDimFetch(
- var: Expr_Variable(
- name: a
- )
- dim: Scalar_LNumber(
- value: @@{ -PHP_INT_MAX - 1 }@@
- )
- )
- )
- )
- )
|