3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function f() { var_dump(__METHOD__); } } class E extends C { public function f() { parent::f(); var_dump(__METHOD__); } } $o = new E; $o->f();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AKICJ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'E'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 'f'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class C:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AKICJ
function name:  f
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'C%3A%3Af'
          2        DO_ICALL                                                 
    5     3      > RETURN                                                   null

End of function f

End of class C.

Class E:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AKICJ
function name:  f
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'f'
          1        DO_FCALL                                      0          
   10     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAL                                                 'E%3A%3Af'
          4        DO_ICALL                                                 
   11     5      > RETURN                                                   null

End of function f

End of class E.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.07 ms | 1395 KiB | 15 Q