3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mozer { public function __construct() { $this->what(); } private function what() { echo 'WAT?'; } } class Child extends Mozer { protected function what() { parent::what(); } } new Mozer; new Child;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Rcqr
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $0      'Mozer'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   20     3        NEW                                              $2      'Child'
          4        DO_FCALL                                      0          
          5        FREE                                                     $2
          6      > RETURN                                                   1

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

End of function __construct

Function what:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Rcqr
function name:  what
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'WAT%3F'
   10     1      > RETURN                                                   null

End of function what

End of class Mozer.

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

End of function what

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

End of function __construct

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.71 ms | 1395 KiB | 13 Q