3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getStatusColor($color){ if ($color == 'warning'){ return "#eea236"; } elseif ($color == 'info'){ return "#46b8da"; } elseifif ($color == 'error'){ return "#d43f3a"; } elseifif ($color == 'success'){ return "#4BAD4B"; } } echo getStatusColor('info');
Output for 5.3.0 - 5.4.26
Parse error: syntax error, unexpected '{' in /in/DdYhm on line 9
Process exited with code 255.