3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MemoryLeak { public function __construct() { $this->things[] = $this; } } for ($i = 0; $i < 331; ++$i) { $obj = new MemoryLeak(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
Branch analysis from position: 2
filename:       /in/sZJsp
function name:  (null)
number of ops:  9
compiled vars:  !0 = $i, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->6
    8     2    >   NEW                                              $3      'MemoryLeak'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    7     5        PRE_INC                                                  !0
          6    >   IS_SMALLER                                               !0, 331
          7      > JMPNZ                                                    ~7, ->2
    9     8    > > RETURN                                                   1

Class MemoryLeak:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sZJsp
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_THIS                                       ~2      
          1        FETCH_OBJ_W                                      $0      'things'
          2        ASSIGN_DIM                                               $0
          3        OP_DATA                                                  ~2
    5     4      > RETURN                                                   null

End of function __construct

End of class MemoryLeak.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.8 ms | 1433 KiB | 13 Q