3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://longurl/img.file?width=123&name=sany'; $parts = parse_url($url); $uri_parts = explode('?', $url)[0]; parse_str($parts['query'], $query); $query['width'] = 150; echo $uri_parts.'?'.http_build_query($query); ?>
Output for git.master, git.master_jit, rfc.property-hooks
http://longurl/img.file?width=150&name=sany

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.1 ms | 1375 KiB | 4 Q