3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = [ "rentalPropertyAddress"=>["111 tree st","112 tree st","122 tree st"], "gasInitialized"=>["on","on","off"], "waterInitialized"=>["off","on","on"], "electricInitialized"=>["on","on","off"], "inspectionDate"=>["","",""], "rentalDate"=>["","",""], "vacantInitialized"=>["no","no","yes"] ]; $retval = []; foreach ($_GET as $key => $item) { $i=0; foreach($item as $k=>$v){ $retval[$i][] = $v; $i++; } } echo "<pre>"; print_r($retval); echo "</pre>";
Output for git.master_jit, git.master, rfc.property-hooks
<pre>Array ( [0] => Array ( [0] => 111 tree st [1] => on [2] => off [3] => on [4] => [5] => [6] => no ) [1] => Array ( [0] => 112 tree st [1] => on [2] => on [3] => on [4] => [5] => [6] => no ) [2] => Array ( [0] => 122 tree st [1] => off [2] => on [3] => off [4] => [5] => [6] => yes ) ) </pre>

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:
41.84 ms | 407 KiB | 5 Q