3v4l.org

run code in 300+ 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.0.0


preferences:
154.74 ms | 1398 KiB | 15 Q