3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface C { public function testing(); } abstract class A implements C { abstract public function testing(); } class B extends A { function testing() { return "Working"; } } $val = new B; echo $val->testing(5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fdoEd
function name:  (null)
number of ops:  10
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'a'
   11     1        DECLARE_CLASS                                            'b', 'a'
   21     2        NEW                                              $1      'B'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   22     5        INIT_METHOD_CALL                                         !0, 'testing'
          6        SEND_VAL_EX                                              5
          7        DO_FCALL                                      0  $4      
          8        ECHO                                                     $4
          9      > RETURN                                                   1

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

End of function testing

End of class C.

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

End of function testing

End of class A.

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

End of function testing

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.12 ms | 1394 KiB | 13 Q