3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "#22aantal283xuitvoeren"; preg_match_all("/\d+/", $s, $number); echo end($number[0]);
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.26, 8.0.0 - 8.0.13, 8.1rc1 - rc3
283

preferences:
38.03 ms | 460 KiB | 5 Q