3v4l.org

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

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

End of function booboo

End of class TheErrorOfYourWays.

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.61 ms | 1385 KiB | 13 Q