3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "123 Fab Test"; for ($i = 0; $i<10000; $i++) { preg_match('/^(\d+) (\w+) (\w+)$/', $str, $m); list(, $id, $first, $last) = $m; echo $id, $first, $last, PHP_EOL; }

preferences:
34.84 ms | 402 KiB | 5 Q