3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; $o->aaa = 1; $o->bbb = false; $a = [$o]; var_dump(json_encode($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XAvML
function name:  (null)
number of ops:  16
compiled vars:  !0 = $o, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, 'aaa'
          4        OP_DATA                                                  1
    5     5        ASSIGN_OBJ                                               !0, 'bbb'
          6        OP_DATA                                                  <false>
    6     7        INIT_ARRAY                                       ~7      !0
          8        ASSIGN                                                   !1, ~7
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.62 ms | 1394 KiB | 17 Q