3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ancester { function __construct() { echo "An/Con\n"; } static function createFromFormat() { echo "An/cf\n"; } } class N extends Ancester { static function createFromFormat() { parent::createFromFormat(); echo "N/CF\n"; } } $f = N::createFromFormat();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ekOtT
function name:  (null)
number of ops:  4
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_STATIC_METHOD_CALL                                  'N', 'createFromFormat'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

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

End of function __construct

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

End of function createfromformat

End of class Ancester.

Class N:
Function createfromformat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ekOtT
function name:  createFromFormat
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                  'createFromFormat'
          1        DO_FCALL                                      0          
   19     2        ECHO                                                     'N%2FCF%0A'
   20     3      > RETURN                                                   null

End of function createfromformat

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

End of function __construct

End of class N.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.11 ms | 1395 KiB | 13 Q