3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Hoge\Service\Service1; class Service1 { } namespace Hoge\Service\Service2; use Hoge\Service\Service1; class Service2 {} new Service1();
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'Hoge\Service\Service1' not found in /in/tHLYp:15 Stack trace: #0 {main} thrown in /in/tHLYp on line 15
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Class 'Hoge\Service\Service1' not found in /in/tHLYp on line 15
Process exited with code 255.