3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ [123, "Title #1", "Name #1"], [124, "Title #2", "Name #2"], ]; $array2 = [ 'name' => ['Image001.jpg', 'Image002.jpg'] ]; foreach ($array1 as $i => &$row) { $row[] = $array2['name'][$i]; } var_export($array1);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => 123, 1 => 'Title #1', 2 => 'Name #1', 3 => 'Image001.jpg', ), 1 => array ( 0 => 124, 1 => 'Title #2', 2 => 'Name #2', 3 => 'Image002.jpg', ), )

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