3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Invoice extends Source_Invoice { /*protected $raise = 0;*/ public function getRaise() { return $this->raise; } } class Source_Invoice { /*protected $raise = 1;*/ } $invoice = new Invoice(); var_dump($invoice->getRaise());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IunR9
function name:  (null)
number of ops:  10
compiled vars:  !0 = $invoice
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'invoice', 'source_invoice'
   18     1        NEW                                              $1      'Invoice'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   20     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'getRaise'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class Invoice:
Function getraise:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IunR9
function name:  getRaise
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                      ~0      'raise'
          1      > RETURN                                                   ~0
   10     2*     > RETURN                                                   null

End of function getraise

End of class Invoice.

Class Source_Invoice: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.77 ms | 1394 KiB | 15 Q