3v4l.org

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