3v4l.org

run code in 300+ PHP versions simultaneously
<?php class target { public static function startCrawler() { echo 'crawler state'; } } class adapter { private static $class = ''; public function __construct($classname) { self::$class = $classname; } public static function __callStatic($method,$args) { echo 'start memory / time tracking'; call_user_func(array(self::$class,$method),$args); echo 'end memory / time tracking'; } } adapter('target'); adapter::startCrawler();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MeqJq
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL_BY_NAME                                       'adapter'
          1        SEND_VAL_EX                                              'target'
          2        DO_FCALL                                      0          
   25     3        INIT_STATIC_METHOD_CALL                                  'adapter', 'startCrawler'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class target:
Function startcrawler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MeqJq
function name:  startCrawler
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'crawler+state'
    6     1      > RETURN                                                   null

End of function startcrawler

End of class target.

Class adapter:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MeqJq
function name:  __construct
number of ops:  4
compiled vars:  !0 = $classname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        ASSIGN_STATIC_PROP                                       'class'
          2        OP_DATA                                                  !0
   15     3      > RETURN                                                   null

End of function __construct

Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MeqJq
function name:  __callStatic
number of ops:  11
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   18     2        ECHO                                                     'start+memory+%2F+time+tracking'
   19     3        FETCH_STATIC_PROP_R          unknown             ~2      'class'
          4        INIT_ARRAY                                       ~3      ~2
          5        ADD_ARRAY_ELEMENT                                ~3      !0
          6        INIT_USER_CALL                                1          'call_user_func', ~3
          7        SEND_USER                                                !1
          8        DO_FCALL                                      0          
   20     9        ECHO                                                     'end+memory+%2F+time+tracking'
   21    10      > RETURN                                                   null

End of function __callstatic

End of class adapter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.35 ms | 1386 KiB | 13 Q