3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= array('mela'=>'pera','mela'=>'pera','arancia'=>'mela'); $b= array_diff_key( $a , array_unique( $a ) ); $i=0; print_r($b); print_r($b[1]);

preferences:
34.78 ms | 402 KiB | 5 Q