3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a= array('mela','mela' ,'pera','arancia','mela','mela','arancia'); $b= array_diff_key( $a , array_unique( $a ) ); foreach ($b as $c) { $row[]=$c; print_r($row[]); }
based on 1YL4E
Output for 4.3.2 - 5.4.32
Fatal error: Cannot use [] for reading in /in/1n92g on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot use [] for reading in /in/1n92g on line 7