3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $query = "my=apples&are=green+and+red"; foreach (explode('&', $query) as $chunk) { $param = explode("=", $chunk); if ($param) { printf("Value for parameter \"%s\" is \"%s\"<br/>\n", urldecode($param[0]), urldecode($param[1])); } } ?>
Output for 4.3.0 - 7.2.0
Value for parameter "my" is "apples"<br/> Value for parameter "are" is "green and red"<br/>