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', ) ); $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', ) ); if (compare_consignment($a, $b)) { echo 'Mached'; } else { echo 'Not 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 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '1' (T_LNUMBER), expecting ')' in /in/JeJMA on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_LNUMBER, expecting ')' in /in/JeJMA on line 14
Process exited with code 255.