3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait t { function c() { var_dump(__METHOD__); } } class c { use t; } $o = new c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pL3Hr
function name:  (null)
number of ops:  5
compiled vars:  !0 = $o
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'c'
   12     1        NEW                                                  $1      'c'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
          4      > RETURN                                                       1

Class t:
Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pL3Hr
function name:  c
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     't%3A%3Ac'
          2        DO_ICALL                                                     
    5     3      > RETURN                                                       null

End of function c

End of class t.

Class c: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
181.41 ms | 3288 KiB | 14 Q