3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function _do_something(){} set_error_handler('_do_something'); $a["x"];//should trigger notice var_dump(error_get_last());//return null
Output for 5.2.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.3.0alpha1
NULL
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.1.6
Fatal error: Call to undefined function error_get_last() in /in/tcTvu on line 7
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/tcTvu on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: error_get_last() in /in/tcTvu on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: error_get_last() in /in/tcTvu on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: error_get_last() in /in/tcTvu on line 7