3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $array = array(); $array[] = array("foo" => 111, "bar" => 444); $array[] = array("foo" => 222, "bar" => 555); $array[] = array("foo" => 333, "bar" => 777); $array2 = array(); $array2[] = array('foobar' => 888, 'barfoo'=>999); $array2[] = array('barfoo' => 999, 'barfoo'=>1010); $array2[] = array('barfoo' => 1111, 'barfoo'=>1212); foreach( $array as $key=>$value){ echo $key."\t=>\t".$value['foo']."..."."\n"; } $array = array_merge($array, $array2); //echo var_dump($array);
Output for git.master, git.master_jit, rfc.property-hooks
0 => 111... 1 => 222... 2 => 333...

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