3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new ArrayObject(array(), ArrayObject::STD_PROP_LIST); $a['arr'] = 'array 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/Mp1Ei
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   NEW                                              $2      'ArrayObject'
          1        SEND_VAL_EX                                              <array>
          2        SEND_VAL_EX                                              1
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    2     5        ASSIGN_DIM                                               !0, 'arr'
          6        OP_DATA                                                  'array+data'
    3     7        NEW                                              $6      'ArrayObject'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
    4    10        ASSIGN_DIM                                               !1, 'arr'
         11        OP_DATA                                                  'array+data'
    5    12        ASSIGN_OBJ                                               !1, 'prop'
         13        OP_DATA                                                  'prop+data'
   11    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   17    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.29 ms | 1395 KiB | 15 Q