3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.target.com/?id=1&module=test&page=index'; $pos = strrpos($url, '='); $target = substr($url, 0, ($pos+1)); echo $target;

preferences:
35.33 ms | 402 KiB | 5 Q