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($four));
based on 0JN8M
Output for 5.6.38 - 7.3.0
Notice: Undefined variable: four in /in/qWOrM on line 10 Array ( )