3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { return get_class(self::); } } class B extends A { } echo B::foo();
Output for 5.5.0 - 5.5.9
Parse error: syntax error, unexpected ')' in /in/VIGVo on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected ')', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /in/VIGVo on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected ')', expecting T_STRING or T_VARIABLE or '$' in /in/VIGVo on line 4
Process exited with code 255.

preferences:
176.16 ms | 1386 KiB | 72 Q