3v4l.org

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

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

End of function c

End of class B.

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.61 ms | 1384 KiB | 13 Q