3v4l.org

run code in 500+ PHP versions simultaneously
<?php define('TEST_TEST', 1); class TestClass2 { function __construct() {} } class TestClass extends TestClass2 { var $test = [ TEST_TEST => 'test' ]; } new TestClass();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LhvkT
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'TEST_TEST'
          2        SEND_VAL                                                     1
          3        DO_ICALL                                                     
   17     4        NEW                                                  $1      'TestClass'
          5        DO_FCALL                                          0          
          6        FREE                                                         $1
          7      > RETURN                                                       1

Class TestClass2:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LhvkT
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                       null

End of function __construct

End of class TestClass2.

Class TestClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LhvkT
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
          0  E > > RETURN                                                       null

End of function __construct

End of class TestClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.72 ms | 2058 KiB | 14 Q