3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/[^0-9]/', '', 12345);

preferences:
54.73 ms | 402 KiB | 5 Q