3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.96 ms | 1395 KiB | 17 Q