3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); function coucou() { echo 'yay'; } set_error_handler('coucou',E_ALL|E_STRICT); set_exception_handler('coucou'); $x = highlight_string('<? /* ',true);
based on mcrOY
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/KNI1g on line 8 Warning: Wrong parameter count for set_error_handler() in /in/KNI1g on line 8 Fatal error: Call to undefined function: set_exception_handler() in /in/KNI1g on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/KNI1g on line 8 Warning: Wrong parameter count for set_error_handler() in /in/KNI1g on line 8 Fatal error: Call to undefined function: set_exception_handler() in /in/KNI1g on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/KNI1g on line 8 Warning: Wrong parameter count for set_error_handler() in /in/KNI1g on line 8 Fatal error: Call to undefined function: set_exception_handler() in /in/KNI1g on line 9