3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/HTTP/'; $serverProtocol = 'HTTP/1.1'; $protocol = preg_match($pattern, $serverProtocol, $matches); print_r($protocol, true);

preferences:
60.22 ms | 402 KiB | 5 Q