3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Employee { function __construct() { echo "<p>Employee construct called!!</p>"; } } class Manager { function __construct() { new Employee(); echo "<p> Manager Construct Called! </p>"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7SZ5Y
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   1

Class Employee:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7SZ5Y
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     '%3Cp%3EEmployee+construct+called%21%21%3C%2Fp%3E'
    7     1      > RETURN                                                   null

End of function __construct

End of class Employee.

Class Manager:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7SZ5Y
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $0      'Employee'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   15     3        ECHO                                                     '%3Cp%3E+Manager+Construct+Called%21+%3C%2Fp%3E'
   16     4      > RETURN                                                   null

End of function __construct

End of class Manager.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.24 ms | 1393 KiB | 13 Q