3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function doThis() { echo 'asdf'; } var_dump(set_exception_handler('doThis')); var_dump(set_exception_handler(null));
Output for 5.5.24 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
NULL string(6) "doThis"
Output for 5.0.3 - 5.4.45
NULL bool(true)
Output for 5.0.0 - 5.0.2
NULL Warning: set_exception_handler() expects the argument () to be a valid callback in /in/codsC on line 9 NULL
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: set_exception_handler() in /in/codsC on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: set_exception_handler() in /in/codsC on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: set_exception_handler() in /in/codsC on line 7