3v4l.org

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

Class Employee:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QUgHe
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%0A'
    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/QUgHe
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%3EManager+Construct+Called%21+%3C%2Fp%3E%0A'
   16     4      > RETURN                                                   null

End of function __construct

End of class Manager.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.19 ms | 1394 KiB | 13 Q