3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = "1234 4569 "; var_dump(preg_match_all('/[0-9]{4}/', $value, $matches, PREG_SET_ORDER)); var_dump($matches);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(2) array(2) { [0]=> array(1) { [0]=> string(4) "1234" } [1]=> array(1) { [0]=> string(4) "4569" } }