3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); function coucou() { echo 'yay'; } set_error_handler('coucou'); set_exception_handler('coucou'); highlight_string('<? /*');
based on tnP18
Output for 5.4.34 - 7.1.0
<code><span style="color: #000000"> <span style="color: #0000BB">&lt;?&nbsp;</span><span style="color: #FF8000">/*</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
Fatal error: Call to undefined function: set_exception_handler() in /in/v43b4 on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: set_exception_handler() in /in/v43b4 on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: set_exception_handler() in /in/v43b4 on line 9