3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testDates = array("A", "B"); $myDates = array("C", "D"); function dates($arrDates) { foreach ($arrDates as $date) { // do something } } function dates($testDates); foreach ($myDates as $myDate) { echo $date; }
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected ';', expecting '{' in /in/7SUFg on line 11
Process exited with code 255.