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;
Output for git.master, git.master_jit
Deprecated: Creation of dynamic property Spaceship::$name is deprecated in /in/L8KCI on line 19 Warning: Trying to access array offset on value of type null in /in/L8KCI on line 27 Notice: Indirect modification of overloaded property Dog::$name has no effect in /in/L8KCI on line 33
Output for rfc.property-hooks
Deprecated: Creation of dynamic property Spaceship::$name is deprecated in /in/L8KCI on line 19 Warning: Trying to access array offset on null in /in/L8KCI on line 27 Notice: Indirect modification of overloaded property Dog::$name has no effect in /in/L8KCI on line 33

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.5 ms | 401 KiB | 8 Q