Bugs & Features

3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?php $url = "http://www.website.com?&p=107"; $url = str_replace("&p", "p", $url); echo $url; // will return http://www.website.com?p=107 ?>
Output for 4.3.0 - 5.6.5, php7@20140507 - 20150101, hhvm-3.3.1 - 3.5.0
http://www.website.com?p=107