3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Foo\Bar; function t() { throw null; } t();
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Can only throw objects in /in/N5ICp:8 Stack trace: #0 /in/N5ICp(11): Foo\Bar\t() #1 {main} thrown in /in/N5ICp on line 8
Process exited with code 255.
Output for 5.3.7 - 5.6.28
Fatal error: Can only throw objects in /in/N5ICp on line 8
Process exited with code 255.