3v4l.org

run code in 300+ PHP versions simultaneously
<?php use A\B as foo; Foo\func(); class Foo { }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
Fatal error: Cannot declare class Foo because the name is already in use in /in/G811D on line 4
Process exited with code 255.

preferences:
198.12 ms | 1395 KiB | 66 Q