3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fillColor = "ed3"; switch (true) { // valid HEX color in #RGB HEX format case preg_match('/^[0-9a-f]{3}$/i', $fillColor): $colorsArray = str_split($fillColor); $fillColor = "{$colorsArray[0], $colorsArray[0], $colorsArray[1], $colorsArray[1], $colorsArray[2], $colorsArray[2]}"; var_dump($fillColor); break; }
based on VSlTc
Output for 7.0.0
Parse error: syntax error, unexpected ',', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /in/HGMLb on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Parse error: syntax error, unexpected ',', expecting '}' in /in/HGMLb on line 7
Process exited with code 255.