3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $messageA = "A::bar()\n"; public function bar() { print(messageA); C::f(); } } class B extends A { public function foo() { print("B::foo()\n"); A::bar(); } } class C extends B { private $messageC = "C::f()\n"; public function f() { print(messageC); } } $obj = new C; $obj->foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5vt5a
function name:  (null)
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $1      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   26     3        INIT_METHOD_CALL                                         !0, 'foo'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class A:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5vt5a
function name:  bar
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_CONSTANT                                   ~0      'messageA'
          1        ECHO                                                     ~0
    7     2        INIT_STATIC_METHOD_CALL                                  'C', 'f'
          3        DO_FCALL                                      0          
    8     4      > RETURN                                                   null

End of function bar

End of class A.

Class B:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5vt5a
function name:  foo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     'B%3A%3Afoo%28%29%0A'
   14     1        INIT_STATIC_METHOD_CALL                                  'A', 'bar'
          2        DO_FCALL                                      0          
   15     3      > RETURN                                                   null

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5vt5a
function name:  bar
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_CONSTANT                                   ~0      'messageA'
          1        ECHO                                                     ~0
    7     2        INIT_STATIC_METHOD_CALL                                  'C', 'f'
          3        DO_FCALL                                      0          
    8     4      > RETURN                                                   null

End of function bar

End of class B.

Class C:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5vt5a
function name:  f
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   FETCH_CONSTANT                                   ~0      'messageC'
          1        ECHO                                                     ~0
   22     2      > RETURN                                                   null

End of function f

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5vt5a
function name:  foo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     'B%3A%3Afoo%28%29%0A'
   14     1        INIT_STATIC_METHOD_CALL                                  'A', 'bar'
          2        DO_FCALL                                      0          
   15     3      > RETURN                                                   null

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5vt5a
function name:  bar
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_CONSTANT                                   ~0      'messageA'
          1        ECHO                                                     ~0
    7     2        INIT_STATIC_METHOD_CALL                                  'C', 'f'
          3        DO_FCALL                                      0          
    8     4      > RETURN                                                   null

End of function bar

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.34 ms | 1399 KiB | 13 Q