3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array ( 0 => array ( 'Parcel No' => 'PBIR3119358001', 'Status' => 'Delivered', 'Date' => '2/12/2010', 'Time' => '1:39', 'Signed for by' => 'MR MOUHAMMED', ), 1 => array ( 'Parcel No' => 'PBIR3119358002', 'Status' => 'Delivered', 'Date' => '2/12/2010', 'Time' => '1:39', 'Signed for by' => 'MR MOUHAMMED', ), 2 => array ( 'Parcel No' => 'PBIR3119358003', 'Status' => 'Delivered', 'Date' => '2/12/2010', 'Time' => '1:39', 'Signed for by' => 'MR MOUHAMMED', ) ); $b = array ( 0 => array ( 'Parcel No' => 'PBIR3119358001', 'Status' => 'Delivered', 'Date' => '2/12/2010', 'Time' => '1:39', 'Signed for by' => 'MR MOUHAMMED', ), 1 => array ( 'Parcel No' => 'PBIR3119358002', 'Status' => 'Delivered', 'Date' => '2/12/2010', 'Time' => '1:39', 'Signed for by' => 'MR MOUHAMMED', ), 2 => array ( 'Parcel No' => 'PBIR3119358003', 'Status' => 'Delivered', 'Date' => '2/12/2010', 'Time' => '1:39', 'Signed for by' => 'MR MOUHAMMED', ) ); if (array_diff($a, $b)) { echo 'Not Matched'; } else { echo 'matched'; } function compare_consignment($original, $con) { if(count($original) != count($con)) { return FALSE; } foreach ($original as $val) { if (!in_array($val, $con)) { return FALSE; } } return TRUE; }
Output for 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 matched
Output for 5.4.0 - 5.6.28
Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 Notice: Array to string conversion in /in/RD7Qu on line 60 matched
Output for 4.3.0 - 5.3.29
matched