3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); namespace strict { class Foo {} } namespace { use strict; }
Output for 5.3.0 - 5.4.17
Fatal error: Namespace declaration statement has to be the very first statement in the script in /in/Oj5kn on line 5
Process exited with code 255.