3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function __get($param) { throw new Exception; } } $a = new A; $a->test;
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception in /in/OI5km:6 Stack trace: #0 /in/OI5km(11): A->__get('test') #1 {main} thrown in /in/OI5km on line 6
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Uncaught exception 'Exception' in /in/OI5km:6 Stack trace: #0 /in/OI5km(11): A->__get('test') #1 {main} thrown in /in/OI5km on line 6
Process exited with code 255.