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 5.3.28 - 5.3.29, 5.4.18 - 7.1.0
Warning: preg_match_all(): Unknown modifier '{' in /in/BRSEK on line 6 bool(false) NULL
Output for 5.2.0 - 5.3.27, 5.4.0 - 5.4.17
Warning: preg_match_all(): Unknown modifier '{' in /in/GGhNK on line 6 bool(false) NULL
Output for 4.3.11 - 5.1.6
Warning: preg_match_all(): Unknown modifier '{' in /in/GGhNK on line 6 bool(false) array(0) { }
Output for 4.3.1 - 4.3.10
Warning: Unknown modifier '{' in /in/GGhNK on line 6 bool(false) array(0) { }
Output for 4.3.0
Warning: Unknown modifier '{' in /in/BRSEK on line 6 bool(false) array(0) { }