3v4l.org

run code in 500+ PHP versions simultaneously
<?php $d = new \stdClass(); $d->foo = 'bar'; $d->a = array(array($d, 'blah')); print serialize($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S0onn
function name:  (null)
number of ops:  15
compiled vars:  !0 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   NEW                                                  $1      'stdClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
    5     3        ASSIGN_OBJ                                                   !0, 'foo'
          4        OP_DATA                                                      'bar'
    6     5        INIT_ARRAY                                           ~6      !0
          6        ADD_ARRAY_ELEMENT                                    ~6      'blah'
          7        INIT_ARRAY                                           ~7      ~6
          8        ASSIGN_OBJ                                                   !0, 'a'
          9        OP_DATA                                                      ~7
    8    10        INIT_FCALL                                                   'serialize'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                             $8      
         13        ECHO                                                         $8
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.52 ms | 2159 KiB | 9 Q