3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface IFoo { public function boo(); } trait TFoo { public function boo() { print "Hello World"; } } class Foo implements IFoo { use TFoo; } $f = new Foo(); $f->boo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07EQM
function name:  (null)
number of ops:  7
compiled vars:  !0 = $f
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                                'foo'
   17     1        NEW                                                  $1      'Foo'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   18     4        INIT_METHOD_CALL                                             !0, 'boo'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Class IFoo:
Function boo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07EQM
function name:  boo
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                       null

End of function boo

End of class IFoo.

Class TFoo:
Function boo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07EQM
function name:  boo
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                         'Hello+World'
   10     1      > RETURN                                                       null

End of function boo

End of class TFoo.

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.92 ms | 3283 KiB | 13 Q