3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = (Object) array();//new stdClass; $id = -99; $a = array('id' => $id, 'name' => 'bill'); $o->$id = $a; var_export($o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CrbYu
function name:  (null)
number of ops:  12
compiled vars:  !0 = $o, !1 = $id, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~3      <array>
          1        ASSIGN                                                   !0, ~3
    4     2        ASSIGN                                                   !1, -99
    5     3        INIT_ARRAY                                       ~6      !1, 'id'
          4        ADD_ARRAY_ELEMENT                                ~6      'bill', 'name'
          5        ASSIGN                                                   !2, ~6
    6     6        ASSIGN_OBJ                                               !0, !1
          7        OP_DATA                                                  !2
    7     8        INIT_FCALL                                               'var_export'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.56 ms | 1398 KiB | 15 Q