3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Tagada { public function lol() { echo(__CLASS__); echo(get_class()); echo(get_called_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/FSqtV
function name:  (null)
number of ops:  7
compiled vars:  !0 = $pute
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   DECLARE_CLASS                                            'pute'
   21     1        NEW                                              $1      'Pute'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   22     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/FSqtV
function name:  lol
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_CLASS_NAME                                 ~0      
          1        ECHO                                                     ~0
    8     2        GET_CLASS                                        ~1      
          3        ECHO                                                     ~1
    9     4        GET_CALLED_CLASS                                 ~2      
          5        ECHO                                                     ~2
   11     6      > 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:
154.53 ms | 1393 KiB | 13 Q