3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Courier { public $name; public $home_country; public function __construct($name) { $this->name = $name; return true; } public function ship($parcel) { return true; } } $first = new Courier('Seb'); print $first->name;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MWhJ2
function name:  (null)
number of ops:  7
compiled vars:  !0 = $first
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Courier'
          1        SEND_VAL_EX                                              'Seb'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   17     4        FETCH_OBJ_R                                      ~4      !0, 'name'
          5        ECHO                                                     ~4
          6      > RETURN                                                   1

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

End of function __construct

Function ship:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MWhJ2
function name:  ship
number of ops:  3
compiled vars:  !0 = $parcel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1      > RETURN                                                   <true>
   13     2*     > RETURN                                                   null

End of function ship

End of class Courier.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.73 ms | 1393 KiB | 13 Q