3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str='0x0fc929cc'; $regex='/[0-9a-f]{3,5}(c+)$/i'; preg_match($regex,$str); if (preg_match($regex,$str,$matches)){ echo $matches[1];} else { echo 'b'; } ?>
Output for 4.3.0 - 7.1.0
cc