3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public $name; } $person = new Person(); $yolo = &$person->name; class Spaceship { } $spaceship = new Spaceship(); $yolo = &$spaceship->name; class Dog { private $properties; public function __get($index) { return $this->properties[$index]; } } $dog = new Dog(); $yolo = &$dog->name;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L8KCI
function name:  (null)
number of ops:  16
compiled vars:  !0 = $person, !1 = $yolo, !2 = $spaceship, !3 = $dog
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $4      'Person'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   10     3        FETCH_OBJ_W                                      $7      !0, 'name'
          4        ASSIGN_REF                                               !1, $7
   17     5        NEW                                              $9      'Spaceship'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $9
   19     8        FETCH_OBJ_W                                      $12     !2, 'name'
          9        ASSIGN_REF                                               !1, $12
   31    10        NEW                                              $14     'Dog'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !3, $14
   33    13        FETCH_OBJ_W                                      $17     !3, 'name'
         14        ASSIGN_REF                                               !1, $17
         15      > RETURN                                                   1

Class Person: [no user functions]
Class Spaceship: [no user functions]
Class Dog:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L8KCI
function name:  __get
number of ops:  5
compiled vars:  !0 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
   27     1        FETCH_OBJ_R                                      ~1      'properties'
          2        FETCH_DIM_R                                      ~2      ~1, !0
          3      > RETURN                                                   ~2
   28     4*     > RETURN                                                   null

End of function __get

End of class Dog.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.12 ms | 1394 KiB | 13 Q