3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $nickname = "hello1 johns22mith123"; if(preg_match_all('!\d+!', $nickname, $numbers)){ if (isset($numbers[0])){ print_r(end($numbers[0])); } }
Output for 4.3.0 - 7.2.0
123