3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface bbqesq { function printSoda(); } class bbq implements bbqesq { var $soda; function printSoda(){ echo $this->soda; } } function doPrint(bbqesq $e) { $e->printSoda(); } $k = new bbq; $k->soda = 8675309; doPrint($e);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nSoMD
function name:  (null)
number of ops:  10
compiled vars:  !0 = $k, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'bbq'
   19     1        NEW                                              $2      'bbq'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   21     4        ASSIGN_OBJ                                               !0, 'soda'
          5        OP_DATA                                                  8675309
   23     6        INIT_FCALL                                               'doprint'
          7        SEND_VAR                                                 !1
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function doprint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nSoMD
function name:  doPrint
number of ops:  4
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        INIT_METHOD_CALL                                         !0, 'printSoda'
          2        DO_FCALL                                      0          
   17     3      > RETURN                                                   null

End of function doprint

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

End of function printsoda

End of class bbqesq.

Class bbq:
Function printsoda:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nSoMD
function name:  printSoda
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'soda'
          1        ECHO                                                     ~0
   12     2      > RETURN                                                   null

End of function printsoda

End of class bbq.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.19 ms | 1399 KiB | 14 Q