3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counter = 100; gc_enable(); while($counter--) { gc_collect_cycles(); $obj = new stdClass; $obj->obj = $obj; $obj->string = str_repeat('1', 1024); }
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/XYilb
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    >   INIT_FCALL                                               'gc_collect_cycles'
          5        DO_ICALL                                                 
    7     6        NEW                                              $5      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $5
    8     9        ASSIGN_OBJ                                               !1, 'obj'
         10        OP_DATA                                                  !1
    9    11        INIT_FCALL                                               'str_repeat'
         12        SEND_VAL                                                 '1'
         13        SEND_VAL                                                 1024
         14        DO_ICALL                                         $10     
         15        ASSIGN_OBJ                                               !1, 'string'
         16        OP_DATA                                                  $10
    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:
152.31 ms | 1399 KiB | 19 Q