3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public static function __callStatic($n,array$p) { echo __METHOD__.' says: '.$n; } } class A extends Base { public static function Launch() { debug_print_backtrace(); } } $x = 'A::Launch'; $x(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TXPfO
function name:  (null)
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN                                                   !0, 'A%3A%3ALaunch'
   22     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
   24     3      > RETURN                                                   1

Class Base:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TXPfO
function name:  __callStatic
number of ops:  5
compiled vars:  !0 = $n, !1 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        CONCAT                                           ~2      'Base%3A%3A__callStatic+says%3A+', !0
          3        ECHO                                                     ~2
    9     4      > RETURN                                                   null

End of function __callstatic

End of class Base.

Class A:
Function launch:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TXPfO
function name:  Launch
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'debug_print_backtrace'
          1        DO_ICALL                                                 
   17     2      > RETURN                                                   null

End of function launch

Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TXPfO
function name:  __callStatic
number of ops:  5
compiled vars:  !0 = $n, !1 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        CONCAT                                           ~2      'Base%3A%3A__callStatic+says%3A+', !0
          3        ECHO                                                     ~2
    9     4      > RETURN                                                   null

End of function __callstatic

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.39 ms | 1396 KiB | 15 Q