3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A{} class a{} echo 'nyan pasu'; ?>
based on D3Rra
Output for 7.0.0 - 7.3.0alpha1
Fatal error: Cannot declare class a, because the name is already in use in /in/PSt8O on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.25
Fatal error: Cannot redeclare class a in /in/PSt8O on line 3
Process exited with code 255.