3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class aa { } class AA { }
Output for 7.0.0 - 7.1.0RC5
Fatal error: Cannot declare class AA, because the name is already in use in /in/fuS49 on line 5
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Class already declared: AA in /in/fuS49 on line 5
Process exited with code 255.
Output for 5.2.3 - 5.6.21
Fatal error: Cannot redeclare class AA in /in/fuS49 on line 5
Process exited with code 255.
Output for 5.2.0 - 5.2.2
<br /> <b>Fatal error</b>: Cannot redeclare class AA in <b>/in/fuS49</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.3.2 - 5.1.6
<br /> <b>Fatal error</b>: Cannot redeclare class aa in <b>/in/fuS49</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Cannot redeclare class aa in <b>/in/fuS49</b> on line <b>5</b><br />