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('<? /*');
based on v43b4
Output for 5.4.34 - 5.6.28, 7.0.0 - 7.1.0
<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?&nbsp;</span><span style="color: #FF8000">/*</span> </span> </code>
Output for hhvm-3.10.0 - 3.12.0
<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?&nbsp;</span> </span> </code>
Output for 5.0.5 - 5.4.32
<code><span style="color: #000000"> &lt;?&nbsp;/*</span> </code>
Output for 5.0.0 - 5.0.4
<code><span style="color: #000000"> &lt;? /*</span> </code>
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/k5FCN on line 8 Warning: Wrong parameter count for set_error_handler() in /in/k5FCN on line 8 Fatal error: Call to undefined function: set_exception_handler() in /in/k5FCN 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/k5FCN on line 8 Warning: Wrong parameter count for set_error_handler() in /in/k5FCN on line 8 Fatal error: Call to undefined function: set_exception_handler() in /in/k5FCN 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/k5FCN on line 8 Warning: Wrong parameter count for set_error_handler() in /in/k5FCN on line 8 Fatal error: Call to undefined function: set_exception_handler() in /in/k5FCN on line 9