3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Tagada { public function lol() { echo(__CLASS__); } } class Pute { use Tagada; } $pute = new Pute(); $pute->lol();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IHpT4
function name:  (null)
number of ops:  7
compiled vars:  !0 = $pute
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'pute'
   15     1        NEW                                              $1      'Pute'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   16     4        INIT_METHOD_CALL                                         !0, 'lol'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function lol

End of class Tagada.

Class Pute: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.15 ms | 1393 KiB | 13 Q