3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { private static function __callStatic($name, $args) { var_dump(get_called_class().'::'.$name); } public function doo() { return $this->foo(); } } class A extends B { public function __call($name, $args) { var_dump($name); } } var_dump(__CLASS__); A::bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9PuqR
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 ''
          2        DO_ICALL                                                 
   18     3        INIT_STATIC_METHOD_CALL                                  'A', 'bar'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class B:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9PuqR
function name:  __callStatic
number of ops:  9
compiled vars:  !0 = $name, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'var_dump'
          3        GET_CALLED_CLASS                                 ~2      
          4        CONCAT                                           ~3      ~2, '%3A%3A'
          5        CONCAT                                           ~4      ~3, !0
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    5     8      > RETURN                                                   null

End of function __callstatic

Function doo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9PuqR
function name:  doo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_METHOD_CALL                                         'foo'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
   10     3*     > RETURN                                                   null

End of function doo

End of class B.

Class A:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9PuqR
function name:  __call
number of ops:  6
compiled vars:  !0 = $name, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   15     5      > 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/9PuqR
function name:  __callStatic
number of ops:  9
compiled vars:  !0 = $name, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'var_dump'
          3        GET_CALLED_CLASS                                 ~2      
          4        CONCAT                                           ~3      ~2, '%3A%3A'
          5        CONCAT                                           ~4      ~3, !0
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    5     8      > RETURN                                                   null

End of function __callstatic

Function doo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9PuqR
function name:  doo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_METHOD_CALL                                         'foo'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
   10     3*     > RETURN                                                   null

End of function doo

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.08 ms | 1400 KiB | 15 Q