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; $b = eval(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/6tW3s
function name:  (null)
number of ops:  20
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        INCLUDE_OR_EVAL                                  $11     $10, EVAL
         15        ASSIGN                                                   !3, $11
    8    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.64 ms | 1395 KiB | 19 Q