3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a() { echo "a"; } function a($a) { echo "a [" . $a . "]"; } a(); a("123"); ?>
Output for 5.0.0 - 5.4.26
Fatal error: Cannot redeclare a() (previously declared in /in/Vgpaa:5) in /in/Vgpaa on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot redeclare a() (previously declared in /in/Vgpaa:5) in /in/Vgpaa on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot redeclare a() (previously declared in /in/Vgpaa:5) in /in/Vgpaa on line 8