3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait Muffins { public static function didIBurnThem() { echo 'yep'; } } class OhNo { use Muffins { didIBurnThem as parentDidIBurnThem; } public static function didIBurnThem() { echo 'nope or maybe ' . self::parentDidIBurnThem(); } } OhNo::didIBurnThem();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1GFNa
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                                'ohno'
   22     1        INIT_STATIC_METHOD_CALL                                      'OhNo', 'didIBurnThem'
          2        DO_FCALL                                          0          
          3      > RETURN                                                       1

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

End of function didiburnthem

End of class Muffins.

Class OhNo:
Function didiburnthem:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1GFNa
function name:  didIBurnThem
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   INIT_STATIC_METHOD_CALL                                      'parentDidIBurnThem'
          1        DO_FCALL                                          0  $0      
          2        CONCAT                                               ~1      'nope+or+maybe+', $0
          3        ECHO                                                         ~1
   18     4      > RETURN                                                       null

End of function didiburnthem

End of class OhNo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.85 ms | 2094 KiB | 13 Q