3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get_numerics ($str) { preg_match_all('/\d+/', $str, $matches); return $matches[0]; } $one = 'APP eco 1-50'; print_r(get_numerics($one));
based on pdruS
Output for 5.6.38 - 7.3.0
Array ( [0] => 1 [1] => 50 )