3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $color='33333'; if (!preg_match("/^[A-Fa-f0-9]{6}$/", $color)) { var_dump(array("result"=>"error: Invalid Color $color")); } else { var_dump(array("result"=>"color is valid")); }
Output for 4.3.0 - 7.1.0
array(1) { ["result"]=> string(26) "error: Invalid Color 33333" }