3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Courier { protected $data = array(); public function __get($property) { return $this->data[property]; } public function __set($property, $value) { $this->data[property] = $value; return true; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WYF3S
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

Class Courier:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WYF3S
function name:  __get
number of ops:  6
compiled vars:  !0 = $property
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        FETCH_CONSTANT                                   ~2      'property'
          2        FETCH_OBJ_R                                      ~1      'data'
          3        FETCH_DIM_R                                      ~3      ~1, ~2
          4      > RETURN                                                   ~3
    8     5*     > RETURN                                                   null

End of function __get

Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WYF3S
function name:  __set
number of ops:  8
compiled vars:  !0 = $property, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        FETCH_CONSTANT                                   ~3      'property'
          3        FETCH_OBJ_W                                      $2      'data'
          4        ASSIGN_DIM                                               $2, ~3
          5        OP_DATA                                                  !1
   12     6      > RETURN                                                   <true>
   13     7*     > RETURN                                                   null

End of function __set

End of class Courier.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.71 ms | 1394 KiB | 13 Q