3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseExample { public static function __callStatic($name, array $arguments) { echo __METHOD__.'('.$name.')'."\n"; } public function __call($name, array $arguments) { echo __METHOD__.'('.$name.')'."\n"; } } class Example extends BaseExample { public function run() { static::test1(); $this->test2(); } } $e = new Example(); $e->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fSvlj
function name:  (null)
number of ops:  6
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'Example'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   25     3        INIT_METHOD_CALL                                         !0, 'run'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function __callstatic

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fSvlj
function name:  __call
number of ops:  7
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        CONCAT                                           ~2      'BaseExample%3A%3A__call%28', !0
          3        CONCAT                                           ~3      ~2, '%29'
          4        CONCAT                                           ~4      ~3, '%0A'
          5        ECHO                                                     ~4
   11     6      > RETURN                                                   null

End of function __call

End of class BaseExample.

Class Example:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fSvlj
function name:  run
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                  'test1'
          1        DO_FCALL                                      0          
   19     2        INIT_METHOD_CALL                                         'test2'
          3        DO_FCALL                                      0          
   20     4      > RETURN                                                   null

End of function run

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

End of function __callstatic

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fSvlj
function name:  __call
number of ops:  7
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        CONCAT                                           ~2      'BaseExample%3A%3A__call%28', !0
          3        CONCAT                                           ~3      ~2, '%29'
          4        CONCAT                                           ~4      ~3, '%0A'
          5        ECHO                                                     ~4
   11     6      > RETURN                                                   null

End of function __call

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.68 ms | 944 KiB | 14 Q