3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 695 => [ 0 => [ '00:00', '01:00', '01:30', '03:30', '04:00', ] ], 700 => [ 1 => [ '00:00', '00:30', '01:00', '01:30', '02:00', ], 2 => [ '00:00', '00:30', '09:00', '06:30', '07:00', ] ] ]; var_export( array_map( fn($rows) => array_values( array_unique( array_merge(...$rows) ) ), $array ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 695 => array ( 0 => '00:00', 1 => '01:00', 2 => '01:30', 3 => '03:30', 4 => '04:00', ), 700 => array ( 0 => '00:00', 1 => '00:30', 2 => '01:00', 3 => '01:30', 4 => '02:00', 5 => '09:00', 6 => '06:30', 7 => '07:00', ), )

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:
96.51 ms | 406 KiB | 5 Q