3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function who() { echo __CLASS__; } public static function test() { self::who(); } } class B extends A { public static function parent::who() { echo __CLASS__; } } B::who(); ?>
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting '(' in /in/PeSG3 on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting '(' in /in/PeSG3 on line 12
Process exited with code 255.

preferences:
179.26 ms | 1395 KiB | 55 Q