3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://somedomain/somefolder/someresoure/somemodel/someaction/id?option=1&sales=mr.%20Ed&text=hello"; $query = parse_url(urldecode($url), PHP_URL_QUERY); var_dump($query); print_r($query); parse_str($query,$parts); var_dump($parts); ?>
Output for git.master, git.master_jit, rfc.property-hooks
string(32) "option=1&sales=mr. Ed&text=hello" option=1&sales=mr. Ed&text=helloarray(3) { ["option"]=> string(1) "1" ["sales"]=> string(6) "mr. Ed" ["text"]=> string(5) "hello" }

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:
36.83 ms | 401 KiB | 8 Q