3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { protected $prop = 1; public function __get(string $name) { echo $name; return $this->prop; } } $a = new A(); echo $a->none;
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.34, 8.3.0 - 8.3.33, 8.4.1 - 8.4.26, 8.5.0 - 8.5.9
none1

preferences:
27.87 ms | 1135 KiB | 8 Q