3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace foo { class bar {} } foreach (array('foo\\bar', 'foo\\\\bar') as $className) { var_dump($className, class_exists($className)); }
Output for 5.3.0 - 5.4.29
Fatal error: No code may exist outside of namespace {} in /in/74uub on line 9
Process exited with code 255.