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"; } elseif ($color == 'error'){ return "#d43f3a"; } elseif ($color == 'success'){ return "#4BAD4B"; } } echo getStatusColor('info');
Output for 4.3.0 - 7.1.0
#46b8da