3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = "11 a b 13 begin t 899 y 50 f end 91 h"; var_export(preg_match_all('~(?:begin|\G(?!^))(?:.(?!end))*?\K\d+~', $text, $out) ? $out : 'no matches');
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0beta1
'no matches'