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'] ]; var_export( array_merge_recursive( $array1, $array2 ) ); echo "\n---\n"; var_export( array_replace_recursive( $array1, $array2 ) );
Output for git.master_jit, rfc.property-hooks, git.master
array ( 0 => array ( 0 => 123, 1 => 'Title #1', 2 => 'Name #1', ), 1 => array ( 0 => 124, 1 => 'Title #2', 2 => 'Name #2', ), 'name' => array ( 0 => 'Image001.jpg', 1 => 'Image002.jpg', ), ) --- array ( 0 => array ( 0 => 123, 1 => 'Title #1', 2 => 'Name #1', ), 1 => array ( 0 => 124, 1 => 'Title #2', 2 => 'Name #2', ), 'name' => array ( 0 => 'Image001.jpg', 1 => '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:
55.93 ms | 1347 KiB | 4 Q