3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function __callStatic ($name, $arguments) { print 'Fake function ' . $name . ' called.'; } public static function b () { print 'Real function b called.'; } } A::b(); A::c();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OgmKe
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 'b'
          1        DO_FCALL                                      0          
   11     2        INIT_STATIC_METHOD_CALL                                  'A', 'c'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function __callstatic

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OgmKe
function name:  b
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'Real+function+b+called.'
    8     1      > RETURN                                                   null

End of function b

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.67 ms | 1394 KiB | 13 Q