3v4l.org

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