3v4l.org

run code in 300+ PHP versions simultaneously
<?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); } } namespace { echo Test\error_reporting(); Test\error_reporting(3); echo Test\error_reporting(); }

preferences:
34.89 ms | 402 KiB | 5 Q