3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arrays = [['00','01'],['10','11'],['20','11']]; $indexes = []; foreach($arrays as $array){ list('0'=>$indexes[]) = $array; } var_dump($indexes);
Output for git.master_jit, git.master, rfc.property-hooks
array(3) { [0]=> string(2) "00" [1]=> string(2) "10" [2]=> string(2) "20" }

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:
50.85 ms | 1594 KiB | 4 Q