3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function createApp() {} } class B extends A { use C; } trait C { public static function createApp() { echo "You should not be here\n"; } } (new B)->createApp();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I2E5Y
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'b', 'a'
   21     1        NEW                                                  $0      'B'
          2        DO_FCALL                                          0          
          3        INIT_METHOD_CALL                                             $0, 'createApp'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

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

End of function createapp

End of class A.

Class B: [no user functions]
Class C:
Function createapp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I2E5Y
function name:  createApp
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                         'You+should+not+be+here%0A'
   18     1      > RETURN                                                       null

End of function createapp

End of class C.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.29 ms | 2117 KiB | 13 Q