3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pattern = '# \w*(?![0-9]{1}) (\w+)#'; $string = "PHP5 released PHP6 not released"; preg_match_all($pattern, $string, $matches); print_r($matches);
based on slKDa
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0rc3
Array ( [0] => Array ( [0] => released PHP6 [1] => not released ) [1] => Array ( [0] => PHP6 [1] => released ) )