3v4l.org

run code in 500+ PHP versions simultaneously
<?php class X { function __call($name, $arg) { print "normal\n"; } static function __callStatic($name, $arg) { print "static\n"; } } X::foo(); (new x)->foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qCGKn0
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                      'X', 'foo'
          1        DO_FCALL                                          0          
   14     2        NEW                                                  $1      'x'
          3        DO_FCALL                                          0          
          4        INIT_METHOD_CALL                                             $1, 'foo'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Class X:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qCGKn0
function name:  __call
number of ops:  4
compiled vars:  !0 = $name, !1 = $arg
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    5     2        ECHO                                                         'normal%0A'
    6     3      > RETURN                                                       null

End of function __call

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

End of function __callstatic

End of class X.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.58 ms | 3347 KiB | 13 Q