3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = array ( 14 => array ( 0 => 29, 1 => 129 ), 193 => array ( 0 => 6009231, 1 => 6324415, 2 => 5682922 ) ); $result = array(); list($k1, $k2) = array_keys($myArray); foreach ($myArray[$k1] as $v1) { foreach ($myArray[$k2] as $v2) { $result[] = "$k1:$v1;$k2:$v2"; } } print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 14:29;193:6009231 [1] => 14:29;193:6324415 [2] => 14:29;193:5682922 [3] => 14:129;193:6009231 [4] => 14:129;193:6324415 [5] => 14:129;193:5682922 )

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:
81.61 ms | 405 KiB | 5 Q