3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $p = '~"(\d+)",?{0,10}~'; $a = '["1","2","3"]'; preg_match_all($p, $a, $r); var_dump($r);
based on s1CdE
Output for 7.3.0 - 7.3.1
Warning: preg_match_all(): Compilation failed: quantifier does not follow a repeatable item at offset 14 in /in/gO6FR on line 6 NULL
Output for 5.6.0 - 7.2.13
Warning: preg_match_all(): Compilation failed: nothing to repeat at offset 14 in /in/gO6FR on line 6 NULL