3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uri = "/route/666"; if (preg_match("{^/route/(?P<route>\d+)$}", $uri, $m)) { echo $m["route"], PHP_EOL; }

preferences:
44.73 ms | 402 KiB | 5 Q