3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Bobbable { public function bob(); } trait Bobber { public function bob() { echo "Bobbity"; } } class Bibble implements Bobbable { use Bobber { bob as bib; } } $b = new Bibble; $b->bob(); $b->bib();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DMAoY
function name:  (null)
number of ops:  9
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'bibble'
   17     1        NEW                                              $1      'Bibble'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   18     4        INIT_METHOD_CALL                                         !0, 'bob'
          5        DO_FCALL                                      0          
   19     6        INIT_METHOD_CALL                                         !0, 'bib'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function bob

End of class Bobbable.

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

End of function bob

End of class Bobber.

Class Bibble: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.74 ms | 994 KiB | 13 Q