3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A1 { public function __call($method, $args) { echo "__call"; } public static function __callStatic($method, $args) { echo "__callStatic"; } } class A2 { // A1 with private function test public function __call($method, $args) { echo "__call"; } public static function __callStatic($method, $args) { echo "__callStatic"; } private function test() {} } class B1 extends A1 { public function test(){ parent::test(); } } class B2 extends A2 { public function test(){ parent::test(); } } $test1 = new B1; $test2 = new B2; $test1->test(); $test2->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQe9n
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test1, !1 = $test2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $2      'B1'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   22     3        NEW                                              $5      'B2'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   23     6        INIT_METHOD_CALL                                         !0, 'test'
          7        DO_FCALL                                      0          
   24     8        INIT_METHOD_CALL                                         !1, 'test'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class A1:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQe9n
function name:  __call
number of ops:  4
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ECHO                                                     '__call'
          3      > 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/OQe9n
function name:  __callStatic
number of ops:  4
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ECHO                                                     '__callStatic'
          3      > RETURN                                                   null

End of function __callstatic

End of class A1.

Class A2:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQe9n
function name:  __call
number of ops:  4
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ECHO                                                     '__call'
          3      > 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/OQe9n
function name:  __callStatic
number of ops:  4
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ECHO                                                     '__callStatic'
          3      > RETURN                                                   null

End of function __callstatic

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

End of function test

End of class A2.

Class B1:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQe9n
function name:  test
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  'test'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   null

End of function test

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQe9n
function name:  __call
number of ops:  4
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ECHO                                                     '__call'
          3      > 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/OQe9n
function name:  __callStatic
number of ops:  4
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ECHO                                                     '__callStatic'
          3      > RETURN                                                   null

End of function __callstatic

End of class B1.

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

End of function test

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OQe9n
function name:  __call
number of ops:  4
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ECHO                                                     '__call'
          3      > 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/OQe9n
function name:  __callStatic
number of ops:  4
compiled vars:  !0 = $method, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ECHO                                                     '__callStatic'
          3      > RETURN                                                   null

End of function __callstatic

End of class B2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.91 ms | 1403 KiB | 13 Q