3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "test dddd 3323fff new 83sdf"; $regex = '#^(.*\d?)[^\d]*$#'; var_dump(preg_match($regex, $test, $matches), $matches);

preferences:
37.75 ms | 405 KiB | 5 Q