3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = (object) [ 'children' => [] ]; $arr->children[] = 1; print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5qKBH
function name:  (null)
number of ops:  9
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~1      <array>
    3     1        ASSIGN                                                   !0, ~1
    6     2        FETCH_OBJ_W                                      $3      !0, 'children'
          3        ASSIGN_DIM                                               $3
          4        OP_DATA                                                  1
    8     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.69 ms | 1398 KiB | 15 Q