3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function __toString() { undefined_function(); } } echo (new A);
based on 32ME5
Output for 7.0.1 - 7.2.0
Fatal error: Method A::__toString() must not throw an exception, caught Error: Call to undefined function undefined_function() in /in/QnXk3 on line 0
Process exited with code 255.
Output for 7.0.0
Fatal error: Method A::__toString() must not throw an exception in /in/QnXk3 on line 0
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function undefined_function() in /in/QnXk3 on line 5
Process exited with code 255.