3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Order { private $numero; public function setNumero($n) { $this->numero = $n; } public function getNumero() { return $this->numero; } } class Shipment extends Order { private $date; private function setDate($d) { $this->date = $d; } } $order = new Order(); $order->setNumero("121345"); $shipment = new Shipment($order); echo $order->getNumero(); echo $shipment->getNumero();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OXFNW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $order, !1 = $shipment
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   NEW                                              $2      'Order'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   29     3        INIT_METHOD_CALL                                         !0, 'setNumero'
          4        SEND_VAL_EX                                              '121345'
          5        DO_FCALL                                      0          
   31     6        NEW                                              $6      'Shipment'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   33    10        INIT_METHOD_CALL                                         !0, 'getNumero'
         11        DO_FCALL                                      0  $9      
         12        ECHO                                                     $9
   34    13        INIT_METHOD_CALL                                         !1, 'getNumero'
         14        DO_FCALL                                      0  $10     
         15        ECHO                                                     $10
         16      > RETURN                                                   1

Class Order:
Function setnumero:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OXFNW
function name:  setNumero
number of ops:  4
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'numero'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function setnumero

Function getnumero:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OXFNW
function name:  getNumero
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~0      'numero'
          1      > RETURN                                                   ~0
   15     2*     > RETURN                                                   null

End of function getnumero

End of class Order.

Class Shipment:
Function setdate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OXFNW
function name:  setDate
number of ops:  4
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
   24     1        ASSIGN_OBJ                                               'date'
          2        OP_DATA                                                  !0
   25     3      > RETURN                                                   null

End of function setdate

Function setnumero:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OXFNW
function name:  setNumero
number of ops:  4
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'numero'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function setnumero

Function getnumero:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OXFNW
function name:  getNumero
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~0      'numero'
          1      > RETURN                                                   ~0
   15     2*     > RETURN                                                   null

End of function getnumero

End of class Shipment.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.93 ms | 1399 KiB | 13 Q