3v4l.org

run code in 300+ PHP versions simultaneously
<?php $events = array( // Sept 10 2018 array( 2018 => array( 9 => array( 10 => array( 'event01' ) ) ) ), // Sept 20 2018 array( 2018 => array( 9 => array( 20 => array( 'event02' ) ) ) ), // Oct 5 2019 array( 2018 => array( 10 => array( 5 => array( 'event03' ) ) ) ) ); $merged = array_replace_recursive(...$events); print_r($merged);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [2018] => Array ( [9] => Array ( [10] => Array ( [0] => event01 ) [20] => Array ( [0] => event02 ) ) [10] => Array ( [5] => Array ( [0] => event03 ) ) ) )

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:
182.94 ms | 407 KiB | 5 Q