3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [11, 22, 32, 44], [22, 33, 44, 45], [12, 24, 25, 31], [15, 16, 31, 41], [22, 33, 44, 45], [44, 22, 32, 11] ]; $set = []; foreach($arr as $curr_array){ sort($curr_array); $hash = implode("|",$curr_array); if(isset($set[$hash])) echo "Duplicate",PHP_EOL; else{ print_r($curr_array); $set[$hash] = true; } }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 11 [1] => 22 [2] => 32 [3] => 44 ) Array ( [0] => 22 [1] => 33 [2] => 44 [3] => 45 ) Array ( [0] => 12 [1] => 24 [2] => 25 [3] => 31 ) Array ( [0] => 15 [1] => 16 [2] => 31 [3] => 41 ) Duplicate Duplicate

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