3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = "http://somedomain/somefolder/someresoure/somemodel/someaction/id?option=1&sales=mr.%20Ed&text=hello"; $query = parse_url(urldecode($url), PHP_URL_QUERY); print_r($query); parse_str($query,$parts); ?>
based on 7803t
Output for 5.1.2 - 7.1.0
option=1&sales=mr. Ed&text=hello
Output for 4.3.0 - 5.1.1
Notice: Use of undefined constant PHP_URL_QUERY - assumed 'PHP_URL_QUERY' in /in/GRVHj on line 4 Warning: parse_url() expects exactly 1 parameter, 2 given in /in/GRVHj on line 4