3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace bla { use test\a; class B { function test () { return a::test(); } } } $b = new bla\B(); $b->test();
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0
Fatal error: No code may exist outside of namespace {} in /in/aILqm on line 11
Process exited with code 255.

preferences:
164.08 ms | 1395 KiB | 24 Q