3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [["testA1", "testA2"], ["testA3", "testA4"]]; $b = [["testB1", "testB2"], ["testB3", "testB4"]]; $c = [["testC1", "testC2"], ["testC3", "testC4"]]; $result = []; foreach ($a as $k => $v) { array_push($result, ...$a[$k], ...$b[$k], ...$c[$k]); } var_export($result);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'testA1', 1 => 'testA2', 2 => 'testB1', 3 => 'testB2', 4 => 'testC1', 5 => 'testC2', 6 => 'testA3', 7 => 'testA4', 8 => 'testB3', 9 => 'testB4', 10 => 'testC3', 11 => 'testC4', )

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:
95.45 ms | 1272 KiB | 4 Q