3v4l.org

run code in 300+ PHP versions simultaneously
<?php $addr = "http://10.0.0.4/?utm_source=source1&utm_medium=medium1&utm_campaign=campaign1"; // Parse the url. $tableName = array ('referer_medium', 'referer_source', 'referer_campaign'); $tags = array ('utm_medium=', 'utm_source=', 'utm_campaign='); $results = explode("&", $addr); print_r($results); foreach ($tags as $key => $tag){ $visitorInfo["{$tableName[$key]}"] = $_GET["{$tag}"]; }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => http://10.0.0.4/?utm_source=source1 [1] => utm_medium=medium1 [2] => utm_campaign=campaign1 ) Warning: Undefined array key "utm_medium=" in /in/rboSM on line 13 Warning: Undefined array key "utm_source=" in /in/rboSM on line 13 Warning: Undefined array key "utm_campaign=" in /in/rboSM on line 13

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