3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface AllowsOpen{ public function open(); } trait Container{ public function open(){ echo 'Something is inside!'; } } class Book implements AllowsOpen{ use Container; public function open(){ echo 'You see only blank pages'; } } $objBook = new Book(); $objBook->open();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TrGGv
function name:  (null)
number of ops:  7
compiled vars:  !0 = $objBook
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                                'book'
   21     1        NEW                                                  $1      'Book'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   22     4        INIT_METHOD_CALL                                             !0, 'open'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

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

End of function open

End of class AllowsOpen.

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

End of function open

End of class Container.

Class Book:
Function open:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TrGGv
function name:  open
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                         'You+see+only+blank+pages'
   18     1      > RETURN                                                       null

End of function open

End of class Book.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.87 ms | 2305 KiB | 13 Q