3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://www.website.com?ap=107"; $url = str_replace("&p", "p", $url); echo $url; // will print http://www.website.com?p=107 echo "<br>"; print_r($url); ?>

preferences:
51.91 ms | 402 KiB | 5 Q