3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait TheErrorOfYourWays{ public function booboo(){ echo 'You had a booboo :('; } } trait SpectacularStuff1 { use TheErrorOfYourWays; } trait SpectacularStuff2 { use TheErrorOfYourWays; } class DoSomethingSpectacular { use SpectacularStuff1, SpectacularStuff2; } $x = new DoSomethingSpectacular();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qulMv
function name:  (null)
number of ops:  7
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                                'spectacularstuff1'
   13     1        DECLARE_CLASS                                                'spectacularstuff2'
   17     2        DECLARE_CLASS                                                'dosomethingspectacular'
   21     3        NEW                                                  $1      'DoSomethingSpectacular'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !0, $1
          6      > RETURN                                                       1

Class TheErrorOfYourWays:
Function booboo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qulMv
function name:  booboo
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                         'You+had+a+booboo+%3A%28'
    6     1      > RETURN                                                       null

End of function booboo

End of class TheErrorOfYourWays.

Class SpectacularStuff1: [no user functions]
Class SpectacularStuff2: [no user functions]
Class DoSomethingSpectacular: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
124.92 ms | 474 KiB | 7 Q