3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public function __get(){ return "A"; } } $a = new A(); var_dump($a);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
Fatal error: Method A::__get() must take exactly 1 argument in /in/v1vp1 on line 5
Process exited with code 255.

preferences:
177.5 ms | 1395 KiB | 62 Q