3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'G- 10'; preg_match_all('!\d+!', $str, $matches); print_r($matches);
based on KcBlY
Output for 5.6.0 - 7.3.0beta1
Array ( [0] => Array ( [0] => 10 ) )