3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $cache = []; } function foo() { $t = new stdClass(); $cache[] = $t; $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/jo0MW
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
   16     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/jo0MW
function name:  foo
number of ops:  15
compiled vars:  !0 = $t, !1 = $cache, !2 = $tt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    9     3        ASSIGN_DIM                                               !1
          4        OP_DATA                                                  !0
   10     5        ASSIGN_OBJ                                               !0, 'foo'
          6        OP_DATA                                                  !0
   12     7        INIT_FCALL                                               'unserialize'
          8        INIT_FCALL                                               'serialize'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
   13    14      > RETURN                                                   null

End of function foo

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.64 ms | 1389 KiB | 20 Q