3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '78€ - 48€ penalty'; $matches = array(); preg_match_all('/\d/', $string, $matches); var_dump($matches);
based on oBV4N
Output for 4.3.0 - 7.3.0rc4
array(1) { [0]=> array(4) { [0]=> string(1) "7" [1]=> string(1) "8" [2]=> string(1) "4" [3]=> string(1) "8" } }