3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); echo('start'); function _($x){return ($x)?htmlspecialchars($x):'nbsp;';} echo('end');
Output for hhvm-3.11.0
Fatal error: Function already defined: _
Process exited with code 255.
Output for hhvm-3.6.1 - 3.10.0
startend
Output for 5.0.0 - 7.0.3
Fatal error: Cannot redeclare _() in /in/f9poH on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
start Fatal error: Cannot redeclare _() in /in/f9poH on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
start Fatal error: Cannot redeclare _() in /in/f9poH on line 4