3v4l.org

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

Class b:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DfDdp
function name:  foo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'get_parent_class'
          1        DO_ICALL                                         $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   null

End of function foo

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.46 ms | 1398 KiB | 15 Q