3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP class Test { public function __call($methodName, $args) { print "Hello World"; } } class Test2 extends Test { public function testMe() { parent::setName(); self::setName(); } } $test = new Test2(); $test->testMe(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67M2c
function name:  (null)
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Test2'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_METHOD_CALL                                         !0, 'testMe'
          4        DO_FCALL                                      0          
   17     5      > RETURN                                                   1

Class Test:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67M2c
function name:  __call
number of ops:  4
compiled vars:  !0 = $methodName, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ECHO                                                     'Hello+World'
    5     3      > RETURN                                                   null

End of function __call

End of class Test.

Class Test2:
Function testme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67M2c
function name:  testMe
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_STATIC_METHOD_CALL                                  'setName'
          1        DO_FCALL                                      0          
   11     2        INIT_STATIC_METHOD_CALL                                  'setName'
          3        DO_FCALL                                      0          
   12     4      > RETURN                                                   null

End of function testme

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67M2c
function name:  __call
number of ops:  4
compiled vars:  !0 = $methodName, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ECHO                                                     'Hello+World'
    5     3      > RETURN                                                   null

End of function __call

End of class Test2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.83 ms | 1395 KiB | 13 Q