3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = json_decode("{}");//new stdClass; $id = -99; $a = array('id' => $id, 'name' => 'bill'); $o->$id = $a; eval('$b = ' . var_export($o, true) . ';'); print_r($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZdiN7
function name:  (null)
number of ops:  21
compiled vars:  !0 = $o, !1 = $id, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%7D'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        ASSIGN                                                   !1, -99
    5     5        INIT_ARRAY                                       ~7      !1, 'id'
          6        ADD_ARRAY_ELEMENT                                ~7      'bill', 'name'
          7        ASSIGN                                                   !2, ~7
    6     8        ASSIGN_OBJ                                               !0, !1
          9        OP_DATA                                                  !2
    7    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $10     
         14        CONCAT                                           ~11     '%24b+%3D+', $10
         15        CONCAT                                           ~12     ~11, '%3B'
         16        INCLUDE_OR_EVAL                                          ~12, EVAL
    8    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.98 ms | 1395 KiB | 19 Q