3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new ArrayObject(array(), ArrayObject::STD_PROP_LIST); $a['arr'] = 'array data'; $a->prop = 'prop data'; $b = new ArrayObject(); $b['arr'] = 'array data'; $b->prop = 'prop data'; // ArrayObject Object // ( // [prop] => prop data // ) print_r($a); // ArrayObject Object // ( // [arr] => array data // ) print_r($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z6hWT
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ArrayObject'
          1        SEND_VAL_EX                                              <array>
          2        SEND_VAL_EX                                              1
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    4     5        ASSIGN_DIM                                               !0, 'arr'
          6        OP_DATA                                                  'array+data'
    5     7        ASSIGN_OBJ                                               !0, 'prop'
          8        OP_DATA                                                  'prop+data'
    6     9        NEW                                              $7      'ArrayObject'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $7
    7    12        ASSIGN_DIM                                               !1, 'arr'
         13        OP_DATA                                                  'array+data'
    8    14        ASSIGN_OBJ                                               !1, 'prop'
         15        OP_DATA                                                  'prop+data'
   14    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   20    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.7 ms | 1436 KiB | 14 Q