3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "Apr 21 08:45 AM,RediMed Northeast,15,2015-04-21 08:00:00.000,2015-04-21 08:04:00.000,2015-04-21 08:17:00.000,2015-04-21 08:17:00.000,90 minutes Apr 21 08:45 AM,RediMed North,14,2015-04-21 08:00:00.000,2015-04-21 08:13:00.000,2015-04-21 08:17:00.000,2015-04-21 08:25:00.000,90 minutes Apr 21 08:45 AM,RediMed North,14,2015-04-21 08:00:00.000,2015-04-21 08:22:00.000,2015-04-21 08:27:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,MedStat,4,2015-04-21 08:00:00.000,2015-04-21 08:23:00.000,2015-04-21 08:23:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed Southwest,14,2015-04-21 08:00:00.000,2015-04-21 00:00:00.000,2015-04-21 08:18:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed Southwest,14,2015-04-21 08:01:00.000,2015-04-21 00:00:00.000,2015-04-21 08:29:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed Southwest,15,2015-04-21 08:02:00.000,2015-04-21 00:00:00.000,2015-04-21 08:30:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed Huntington,4,2015-04-21 08:03:00.000,2015-04-21 08:14:00.000,2015-04-21 08:14:00.000,2015-04-21 08:18:00.000,90 minutes Apr 21 08:45 AM,RediMed Northeast,15,2015-04-21 08:05:00.000,2015-04-21 08:09:00.000,2015-04-21 08:13:00.000,2015-04-21 08:23:00.000,90 minutes Apr 21 08:45 AM,RediMed Bluffton,49,2015-04-21 08:06:00.000,2015-04-21 08:16:00.000,2015-04-21 08:17:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed Northeast,15,2015-04-21 08:10:00.000,2015-04-21 08:17:00.000,2015-04-21 08:23:00.000,2015-04-21 08:29:00.000,90 minutes Apr 21 08:45 AM,RediMed Southwest,15,2015-04-21 08:12:00.000,2015-04-21 00:00:00.000,2015-04-21 08:36:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed North,15,2015-04-21 08:15:00.000,2015-04-21 08:39:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed New Haven,14,2015-04-21 08:17:00.000,2015-04-21 08:32:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed Bluffton,4,2015-04-21 08:28:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed Downtown,4,2015-04-21 08:35:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,MedStat Syracuse,15,2015-04-21 08:36:00.000,2015-04-21 08:41:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed Northeast,15,2015-04-21 08:39:00.000,2015-04-21 08:44:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 08:45 AM,RediMed Southwest,14,2015-04-21 08:41:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed Northeast,15,2015-04-21 08:00:00.000,2015-04-21 08:04:00.000,2015-04-21 08:17:00.000,2015-04-21 08:17:00.000,90 minutes Apr 21 09:00 AM,RediMed North,14,2015-04-21 08:00:00.000,2015-04-21 08:13:00.000,2015-04-21 08:17:00.000,2015-04-21 08:25:00.000,90 minutes Apr 21 09:00 AM,RediMed North,14,2015-04-21 08:00:00.000,2015-04-21 08:22:00.000,2015-04-21 08:27:00.000,2015-04-21 08:36:00.000,90 minutes Apr 21 09:00 AM,MedStat,4,2015-04-21 08:00:00.000,2015-04-21 08:23:00.000,2015-04-21 08:23:00.000,2015-04-21 08:32:00.000,90 minutes Apr 21 09:00 AM,RediMed Southwest,14,2015-04-21 08:00:00.000,2015-04-21 00:00:00.000,2015-04-21 08:18:00.000,2015-04-21 08:24:00.000,90 minutes Apr 21 09:00 AM,RediMed Southwest,14,2015-04-21 08:01:00.000,2015-04-21 00:00:00.000,2015-04-21 08:29:00.000,2015-04-21 08:49:00.000,90 minutes Apr 21 09:00 AM,RediMed Southwest,15,2015-04-21 08:02:00.000,2015-04-21 00:00:00.000,2015-04-21 08:30:00.000,2015-04-21 08:36:00.000,90 minutes Apr 21 09:00 AM,RediMed Huntington,4,2015-04-21 08:03:00.000,2015-04-21 08:14:00.000,2015-04-21 08:14:00.000,2015-04-21 08:18:00.000,90 minutes Apr 21 09:00 AM,RediMed Northeast,15,2015-04-21 08:05:00.000,2015-04-21 08:09:00.000,2015-04-21 08:13:00.000,2015-04-21 08:23:00.000,90 minutes Apr 21 09:00 AM,RediMed Bluffton,49,2015-04-21 08:06:00.000,2015-04-21 08:16:00.000,2015-04-21 08:17:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed Northeast,15,2015-04-21 08:10:00.000,2015-04-21 08:17:00.000,2015-04-21 08:23:00.000,2015-04-21 08:29:00.000,90 minutes Apr 21 09:00 AM,RediMed Southwest,15,2015-04-21 08:12:00.000,2015-04-21 00:00:00.000,2015-04-21 08:36:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed North,15,2015-04-21 08:15:00.000,2015-04-21 08:39:00.000,2015-04-21 08:44:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed New Haven,14,2015-04-21 08:17:00.000,2015-04-21 08:32:00.000,2015-04-21 08:35:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed Southwest,15,2015-04-21 08:21:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed Bluffton,4,2015-04-21 08:28:00.000,2015-04-21 08:48:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed Downtown,4,2015-04-21 08:35:00.000,2015-04-21 00:00:00.000,2015-04-21 08:42:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed North,15,2015-04-21 08:37:00.000,2015-04-21 08:51:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed Northeast,15,2015-04-21 08:39:00.000,2015-04-21 08:44:00.000,2015-04-21 08:49:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed Southwest,14,2015-04-21 08:41:00.000,2015-04-21 00:00:00.000,2015-04-21 08:50:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,MedStat,15,2015-04-21 08:43:00.000,2015-04-21 08:47:00.000,2015-04-21 08:52:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,MedStat,14,2015-04-21 08:50:00.000,2015-04-21 08:53:00.000,2015-04-21 08:55:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,MedStat,15,2015-04-21 08:51:00.000,2015-04-21 08:55:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed Huntington,4,2015-04-21 08:52:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes Apr 21 09:00 AM,RediMed New Haven,15,2015-04-21 08:57:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,2015-04-21 00:00:00.000,90 minutes"; $data = explode("\n", $data); $csv = array_map('str_getcsv', $data); var_dump($csv); ?>

preferences:
36.59 ms | 402 KiB | 5 Q