3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Lolling { public function Lol() { echo 'lol'; } } class Chubbycheek { use Lolling; } $x = new Chubbycheek; $x->Lol();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2esY4
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                                            'chubbycheek'
   13     1        NEW                                              $1      'Chubbycheek'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   14     4        INIT_METHOD_CALL                                         !0, 'Lol'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function lol

End of class Lolling.

Class Chubbycheek: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.93 ms | 1384 KiB | 13 Q