3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = 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/mYC8a
function name:  (null)
number of ops:  13
compiled vars:  !0 = $o, !1 = $id, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN                                                   !1, -99
    4     4        INIT_ARRAY                                       ~7      !1, 'id'
          5        ADD_ARRAY_ELEMENT                                ~7      'bill', 'name'
          6        ASSIGN                                                   !2, ~7
    5     7        ASSIGN_OBJ                                               !0, !1
          8        OP_DATA                                                  !2
    6     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.23 ms | 1398 KiB | 15 Q