3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Courier implements Countable { protected $count = 0; public function ship(Parcel $parcel) { $this->count++; return true; } public function count() { return $this->count; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OWsZB
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'courier'
   15     1      > RETURN                                                   1

Class Courier:
Function ship:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OWsZB
function name:  ship
number of ops:  4
compiled vars:  !0 = $parcel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        PRE_INC_OBJ                                              'count'
    8     2      > RETURN                                                   <true>
   10     3*     > RETURN                                                   null

End of function ship

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

End of function count

End of class Courier.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.99 ms | 1397 KiB | 13 Q