3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public static function foo() { return get_class(::self); } } class B extends A { } echo B::foo();
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting ')' in /in/Nv6C9 on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ')' in /in/Nv6C9 on line 4
Process exited with code 255.