3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function get_month_name($m, $locale = "en_US.UTF-8") { $l = setlocale(LC_ALL, 0); setlocale(LC_ALL, "en_US.UTF-8"); $n = date("F", mktime(0, 0, 0, $m, 10)); setlocale(LC_ALL, $l); return $n; } function get_months($locale = "en_US.UTF-8") { $m = 1, $y = array(); while($m <= 12) { $y[$m++] = get_month_name($m, $locale); } return $y; }
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected ',' in /in/pq6EU on line 17
Process exited with code 255.