3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'Dorpsstraat 41'; $matchArr = array(); preg_match_all('/(\d+)/', $string, $matchArr); var_dump($matchArr);
Output for 4.3.0 - 7.1.0
array(2) { [0]=> array(1) { [0]=> string(2) "41" } [1]=> array(1) { [0]=> string(2) "41" } }