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'); highlight_string('<? $docs = array(); $images = array(); if($attachments && $user->can_view_task($task_details)) { fxm(count($attachments)); /* ',true);
based on KT2KD
Output for 5.0.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/mcrOY on line 8 Warning: Wrong parameter count for set_error_handler() in /in/mcrOY on line 8 Fatal error: Call to undefined function: set_exception_handler() in /in/mcrOY 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/mcrOY on line 8 Warning: Wrong parameter count for set_error_handler() in /in/mcrOY on line 8 Fatal error: Call to undefined function: set_exception_handler() in /in/mcrOY 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/mcrOY on line 8 Warning: Wrong parameter count for set_error_handler() in /in/mcrOY on line 8 Fatal error: Call to undefined function: set_exception_handler() in /in/mcrOY on line 9