3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $t = new stdClass(); $t->foo = $t; $tt = unserialize(serialize($t)); } foo(); gc_collect_cycles();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JQS2a
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
   11     2        INIT_FCALL                                               'gc_collect_cycles'
          3        DO_ICALL                                                 
          4      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JQS2a
function name:  foo
number of ops:  13
compiled vars:  !0 = $t, !1 = $tt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        ASSIGN_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  !0
    7     5        INIT_FCALL                                               'unserialize'
          6        INIT_FCALL                                               'serialize'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    8    12      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.91 ms | 1397 KiB | 20 Q