3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.27, 5.4.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.

preferences:
175.91 ms | 1395 KiB | 56 Q