3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo{} function getText() { echo 'Bar'; } new Foo(getText());
Output for 5.3.0 - 5.4.31
Fatal error: Cannot redeclare getText() in /in/50GLI on line 8
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Cannot redeclare gettext() in /in/50GLI on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot redeclare gettext() in /in/50GLI on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot redeclare gettext() in /in/50GLI on line 5