3v4l.org

run code in 300+ PHP versions simultaneously
<?php $venues = array( array( 'venue1' => 1, 'venue2' => 2, ), array( 'venue1' => 3, 'venue2' => 4, ), array ( 'venue1' => 2, 'venue2' => 1, ), array( 'venue1' => 5, 'venue2' => 6, ), ); $tmp = $venues; array_walk($tmp, static fn (array &$value) => sort($value)); $tmp = array_unique($tmp, SORT_REGULAR); $result = array_intersect_key($venues, $tmp); var_export($result);
Output for git.master_jit, git.master
array ( 0 => array ( 'venue1' => 1, 'venue2' => 2, ), 1 => array ( 'venue1' => 3, 'venue2' => 4, ), 3 => array ( 'venue1' => 5, 'venue2' => 6, ), )

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:
33.59 ms | 405 KiB | 5 Q