3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! namespace Test { function error_reporting($new_level = null) { $arguments = array_slice(array($new_level), func_num_args()); $refFunc = new ReflectionFunction('error_reporting'); return $refFunc->invokeArgs($arguments); } } echo Test\error_reporting(); Test\error_reporting(3); echo Test\error_reporting();
Output for 5.3.0 - 5.4.17
Fatal error: No code may exist outside of namespace {} in /in/p3cHK on line 12
Process exited with code 255.