Bugs & Features

3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?php error_reporting(E_ALL); echo('start'); function _($x){return ($x)?htmlspecialchars($x):'nbsp;';} echo('end');
Output for php7@20141201 - 20150101, hhvm-3.4.1 - 3.5.0
startend
Output for 5.0.0 - 5.6.5, php7@20140507 - 20141101, php7@20150201
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