3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "4444,4444,5555,5555,4444,4444"; if(preg_match("/^\d{4}(,\d{4})*$/",$str)){ echo "it matched"; } else { echo "no match"; }
based on KCpbS
Output for 4.3.0 - 7.1.0
it matched