3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counter = 100; gc_enable(); while($counter--) { $obj = new stdClass; $obj->obj = $obj; $obj->string = str_repeat(1, 1024 * 100); gc_collect_cycles(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
filename:       /in/HQeEr
function name:  (null)
number of ops:  20
compiled vars:  !0 = $counter, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 100
    4     1        INIT_FCALL                                               'gc_enable'
          2        DO_ICALL                                                 
    5     3      > JMP                                                      ->17
    6     4    >   NEW                                              $4      'stdClass'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $4
    7     7        ASSIGN_OBJ                                               !1, 'obj'
          8        OP_DATA                                                  !1
    8     9        INIT_FCALL                                               'str_repeat'
         10        SEND_VAL                                                 1
         11        SEND_VAL                                                 102400
         12        DO_ICALL                                         $9      
         13        ASSIGN_OBJ                                               !1, 'string'
         14        OP_DATA                                                  $9
    9    15        INIT_FCALL                                               'gc_collect_cycles'
         16        DO_ICALL                                                 
    5    17    >   POST_DEC                                         ~11     !0
         18      > JMPNZ                                                    ~11, ->4
   10    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.74 ms | 1395 KiB | 19 Q