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; } } $k = new bbq; $k->soda = 8675309; $k->printSoda();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OuL59
function name:  (null)
number of ops:  9
compiled vars:  !0 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'bbq'
   15     1        NEW                                              $1      'bbq'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   17     4        ASSIGN_OBJ                                               !0, 'soda'
          5        OP_DATA                                                  8675309
   18     6        INIT_METHOD_CALL                                         !0, 'printSoda'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class bbqesq:
Function printsoda:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OuL59
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/OuL59
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:
165.85 ms | 1394 KiB | 13 Q