3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { private $_events = []; public function __construct() { $this->_events[] = $this; } } while (1) $hotel = new TestClass();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 1
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 1
Branch analysis from position: 5
Branch analysis from position: 1
filename:       /in/DdkVN
function name:  (null)
number of ops:  6
compiled vars:  !0 = $hotel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > JMP                                                      ->4
   14     1    >   NEW                                              $1      'TestClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   13     4    > > JMPNZ                                                    1, ->1
   14     5    > > RETURN                                                   1

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

End of function __construct

End of class TestClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.71 ms | 1394 KiB | 13 Q