3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = array('"The Albany Academies (AA & AAG)","Closed, Play will be at 7 pm tonight"','"Amsterdam Head Start","Closed, Staff Report, Parent/Teacher conference schedule normal"','"Averill Park Pre School","Closed, closed Open House 7:00 -8:00 still scheduled"'); while ($row = each($file)) { $match = preg_match("/\"(.*)\"\,\"(.*)\"/i", $row[1], $matches); echo '<b>' . $matches[1] . '</b><br>'; echo $matches[2] . '<br><br>'; }

preferences:
39.36 ms | 402 KiB | 5 Q