3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public static function staticA() { echo "A::staticA()".PHP_EOL; } public function instanceA() { echo "A->instanceA()".PHP_EOL; } } class B extends A { public static function staticCalls() { echo "B::staticCalls()".PHP_EOL; parent::staticA(); echo "------------------------".PHP_EOL; } public function calls() { echo "B->calls()".PHP_EOL; parent::staticA(); parent::instanceA(); echo "------------------------".PHP_EOL; } } $b = new B(); B::staticCalls(); $b->calls();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pAl4v
function name:  (null)
number of ops:  8
compiled vars:  !0 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   31     0  E >   NEW                                                  $1      'B'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   33     3        INIT_STATIC_METHOD_CALL                                      'B', 'staticCalls'
          4        DO_FCALL                                          0          
   35     5        INIT_METHOD_CALL                                             !0, 'calls'
          6        DO_FCALL                                          0          
          7      > RETURN                                                       1

Class A:
Function statica:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pAl4v
function name:  staticA
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                         'A%3A%3AstaticA%28%29%0A'
          1      > RETURN                                                       null

End of function statica

Function instancea:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pAl4v
function name:  instanceA
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                         'A-%3EinstanceA%28%29%0A'
          1      > RETURN                                                       null

End of function instancea

End of class A.

Class B:
Function staticcalls:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pAl4v
function name:  staticCalls
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                         'B%3A%3AstaticCalls%28%29%0A'
   16     1        INIT_STATIC_METHOD_CALL                                      'staticA'
          2        DO_FCALL                                          0          
   17     3        ECHO                                                         '------------------------%0A'
   19     4      > RETURN                                                       null

End of function staticcalls

Function calls:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pAl4v
function name:  calls
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   22     0  E >   ECHO                                                         'B-%3Ecalls%28%29%0A'
   23     1        INIT_STATIC_METHOD_CALL                                      'staticA'
          2        DO_FCALL                                          0          
   24     3        INIT_STATIC_METHOD_CALL                                      'instanceA'
          4        DO_FCALL                                          0          
   25     5        ECHO                                                         '------------------------%0A'
   26     6      > RETURN                                                       null

End of function calls

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

End of function statica

Function instancea:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pAl4v
function name:  instanceA
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                         'A-%3EinstanceA%28%29%0A'
          1      > RETURN                                                       null

End of function instancea

End of class B.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.42 ms | 1664 KiB | 13 Q