3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace MyNamespace; register_shutdown_function("myHandeler"); // this throws an error because it can't find function function myHandeler() { // Some Code. } namespace MyNamespace; register_shutdown_function("MyNamespace\myHandeler"); // this throws no error. function myHandeler() { // Some Code. }
Output for 5.3.0 - 5.4.20
Fatal error: Cannot redeclare MyNamespace\myHandeler() (previously declared in /in/cDdlO:7) in /in/cDdlO on line 14
Process exited with code 255.