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 51-100'; print_r(get_numerics($one));
based on trr3U
Output for 5.6.38 - 7.3.0
Array ( [0] => 51 [1] => 100 )