3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a($a, array $b = NULL) { foreach($b as $key => $value); } function a($a, array $b = array()) { foreach($b as $key => $value); } var_dump(a(1)); var_dump(b(1));
Output for 5.3.0 - 5.4.11
Fatal error: Cannot redeclare a() (previously declared in /in/3JpQI:4) in /in/3JpQI on line 12
Process exited with code 255.