3v4l.org

run code in 300+ PHP versions simultaneously
<?php $queryString = 'arrFilter_196_73887=Y&arrFilter_197_8145817=&set_filter=%CF%EE%EA%E0%E7%E0%F2%FC'; $queryUrl = parse_url($queryString); //path, query parse_str($queryUrl['query'], $args); $args = array_filter($args); $queryString = $queryUrl['path'].(count($args) ?'?'.http_build_query($args) :''); var_dump($queryUrl, $queryString); //arrFilter_196_73887=Y&arrFilter_197_8145817=&set_filter=%CF%EE%EA%E0%E7%E0%F2%FC
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "query" in /in/4CKnv on line 5 Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /in/4CKnv on line 5 array(1) { ["path"]=> string(80) "arrFilter_196_73887=Y&arrFilter_197_8145817=&set_filter=%CF%EE%EA%E0%E7%E0%F2%FC" } string(80) "arrFilter_196_73887=Y&arrFilter_197_8145817=&set_filter=%CF%EE%EA%E0%E7%E0%F2%FC"

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:
39.42 ms | 402 KiB | 8 Q