3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = new stdClass(); $t->foo = $t; $tt = unserialize(serialize($t)); unset($t, $tt); gc_collect_cylcles();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0S8DH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $t, !1 = $tt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  !0
    6     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        UNSET_CV                                                 !0
         13        UNSET_CV                                                 !1
   10    14        INIT_FCALL_BY_NAME                                       'gc_collect_cylcles'
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.72 ms | 1394 KiB | 17 Q