3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A extends B { private $str = "Pysh!.."; public function f() { B::g(); } } class B { private $str = "Ololo!.."; public function g() { print("I work!\n"); } } (new A)->f();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JAC37
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'a', 'b'
   19     1        NEW                                              $0      'A'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'f'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function f

End of class A.

Class B:
Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JAC37
function name:  g
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'I+work%21%0A'
   16     1      > RETURN                                                   null

End of function g

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.45 ms | 1394 KiB | 13 Q