3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $items_thread=Array ( Array ( 'RecipientID' => 3, 'RecipientScreenname' => 'Tom L', 'RecipientFirstname' => 'Thomas', 'RecipientEmail'=> 'info@xx.com', ), Array ( 'RecipientID' => 3, 'RecipientScreenname' => 'Tom L', 'RecipientFirstname' => 'Thomas', 'RecipientEmail'=> 'info@xx.com', ), Array ( 'RecipientID'=> 1, 'RecipientScreenname' => 'Lau T', 'RecipientFirstname' => 'TK', 'RecipientEmail' => 'au@xx.co.uk', ) ); var_export(array_unique($items_thread));
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/sdSnd on line 33 Notice: Array to string conversion in /in/sdSnd on line 33 Notice: Array to string conversion in /in/sdSnd on line 33 Notice: Array to string conversion in /in/sdSnd on line 33 Notice: Array to string conversion in /in/sdSnd on line 33 Notice: Array to string conversion in /in/sdSnd on line 33 Notice: Array to string conversion in /in/sdSnd on line 33 Notice: Array to string conversion in /in/sdSnd on line 33 array ( 0 => array ( 'RecipientID' => 3, 'RecipientScreenname' => 'Tom L', 'RecipientFirstname' => 'Thomas', 'RecipientEmail' => 'info@xx.com', ), )
Output for 4.3.0 - 5.2.8, 5.2.10 - 5.3.29
array ( 0 => array ( 'RecipientID' => 3, 'RecipientScreenname' => 'Tom L', 'RecipientFirstname' => 'Thomas', 'RecipientEmail' => 'info@xx.com', ), )
Output for 5.2.9
array ( 0 => array ( 'RecipientID' => 3, 'RecipientScreenname' => 'Tom L', 'RecipientFirstname' => 'Thomas', 'RecipientEmail' => 'info@xx.com', ), 2 => array ( 'RecipientID' => 1, 'RecipientScreenname' => 'Lau T', 'RecipientFirstname' => 'TK', 'RecipientEmail' => 'au@xx.co.uk', ), )