3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseExample { public static function __callStatic($name, array $arguments) { echo "Calling static method '$name' \n"; } public function __call($name, array $arguments) { echo "Calling object method '$name' \n"; } } class Example extends BaseExample { public function __construct() { BaseExample::test1(); Example::test2(); static::test3(); self::test4(); $this->test5(); test(); } } $u = new Example(); Example::test8(); $u->test9(); function test() { Example::test6(); $this->test7(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d6Chc
function name:  (null)
number of ops:  8
compiled vars:  !0 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   NEW                                              $1      'Example'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   30     3        INIT_STATIC_METHOD_CALL                                  'Example', 'test8'
          4        DO_FCALL                                      0          
   31     5        INIT_METHOD_CALL                                         !0, 'test9'
          6        DO_FCALL                                      0          
   36     7      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d6Chc
function name:  test
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E >   INIT_STATIC_METHOD_CALL                                  'Example', 'test6'
          1        DO_FCALL                                      0          
   35     2        FETCH_THIS                                       $1      
          3        INIT_METHOD_CALL                                         $1, 'test7'
          4        DO_FCALL                                      0          
   36     5      > RETURN                                                   null

End of function test

Class BaseExample:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d6Chc
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        ROPE_INIT                                     3  ~3      'Calling+static+method+%27'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%27+%0A'
          5        ECHO                                                     ~2
    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/d6Chc
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        ROPE_INIT                                     3  ~3      'Calling+object+method+%27'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%27+%0A'
          5        ECHO                                                     ~2
   11     6      > RETURN                                                   null

End of function __call

End of class BaseExample.

Class Example:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d6Chc
function name:  __construct
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                  'BaseExample', 'test1'
          1        DO_FCALL                                      0          
   19     2        INIT_STATIC_METHOD_CALL                                  'Example', 'test2'
          3        DO_FCALL                                      0          
   20     4        INIT_STATIC_METHOD_CALL                                  'test3'
          5        DO_FCALL                                      0          
   21     6        INIT_STATIC_METHOD_CALL                                  'test4'
          7        DO_FCALL                                      0          
   22     8        INIT_METHOD_CALL                                         'test5'
          9        DO_FCALL                                      0          
   23    10        INIT_FCALL_BY_NAME                                       'test'
         11        DO_FCALL                                      0          
   24    12      > 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/d6Chc
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        ROPE_INIT                                     3  ~3      'Calling+static+method+%27'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%27+%0A'
          5        ECHO                                                     ~2
    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/d6Chc
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        ROPE_INIT                                     3  ~3      'Calling+object+method+%27'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%27+%0A'
          5        ECHO                                                     ~2
   11     6      > RETURN                                                   null

End of function __call

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1399 KiB | 13 Q