3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CI_Controller { public function __construct() { echo "CI_Controller constructor\n"; } } class Enforcement extends CI_Controller { function __construct() { echo "Enforcement constructor\n"; parent::__construct(); $this->_validate(); } private static function _validate() { echo "validated\n"; } } new Enforcement;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VJXNf
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $0      'Enforcement'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

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

End of function __construct

End of class CI_Controller.

Class Enforcement:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VJXNf
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'Enforcement+constructor%0A'
   12     1        INIT_STATIC_METHOD_CALL                                  
          2        DO_FCALL                                      0          
   14     3        INIT_METHOD_CALL                                         '_validate'
          4        DO_FCALL                                      0          
   15     5      > RETURN                                                   null

End of function __construct

Function _validate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VJXNf
function name:  _validate
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ECHO                                                     'validated%0A'
   19     1      > RETURN                                                   null

End of function _validate

End of class Enforcement.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.72 ms | 1394 KiB | 13 Q