<?php $str = '... 12:32 +0304] "GET /test.php?param=value ....'; preg_match('/GET \/(.*?)\?/', $str, $re); print_r($re[1]);
Standard input is empty
test.php
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!