3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = preg_replace('/[^0-9]/', '', '10c3'); print_r($x);

preferences:
29.23 ms | 402 KiB | 5 Q