3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace A::B::C; function foo() { // do stuff } set_error_handler(__NAMESPACE__ . "::foo"); ?>
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting \\ (T_NS_SEPARATOR) or ';' or '{' in /in/e8LYm on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting T_NS_SEPARATOR or ';' or '{' in /in/e8LYm on line 2
Process exited with code 255.