3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = [ 'q' => 'Modules/ShowDocument.aspx', 'documentlD' => '278', ]; // The following query strings should be corrected for case sensitivity or url // redirects won't match properly. $substitutions = [ 'documentid' => 'documentID', 'imageid' => 'imageID', ]; // if (!empty(array_intersect(array_map('strtolower', array_keys($_GET)), array_keys($substitutions)))) { foreach ($_GET as $param_name => $value) { $param_lc = strtolower($param_name); if (in_array($param_lc, array_keys($substitutions)) && $param_name !== $substitutions[$param_lc]) { $_GET[$substitutions[$param_lc]] = $value; unset($_GET[$param_name]); } } // } var_dump($_GET);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["q"]=> string(25) "Modules/ShowDocument.aspx" ["documentlD"]=> string(3) "278" }

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