3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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>'; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<b>The Albany Academies (AA & AAG)</b><br>Closed, Play will be at 7 pm tonight<br><br><b>Amsterdam Head Start</b><br>Closed, Staff Report, Parent/Teacher conference schedule normal<br><br><b>Averill Park Pre School</b><br>Closed, closed Open House 7:00 -8:00 still scheduled<br><br>