3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { abstract 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/WgSfr
function name:  (null)
number of ops:  6
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   ADD_INTERFACE                                            'b', 'a'
  21     1        NEW                                              $0      :8
         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/WgSfr
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/WgSfr
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.0.0


preferences:
17.33 ms | 410 KiB | 7 Q