3v4l.org

run code in 300+ PHP versions simultaneously
<?php function clean($full_url){ $parts = explode('?lf1=1.3', $full_url, 2); // $parts[1] = rtrim(preg_replace('@?lf1=1.3+@', '/', $parts[1]), '/'); //$full_url = implode('//', $parts); //return $full_url; } $urls = "<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js?lf1=1.3?lf1=1.3?lf1=1.3?lf1=1.3">"; foreach($urls as $url){ echo "Before: $url\nAfter: ".clean($url)."\n---------------------\n"; } ?>
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'text' (T_STRING) in /in/kofbC on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/kofbC on line 9
Process exited with code 255.

preferences:
184.71 ms | 940 KiB | 65 Q