3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __construct(){ b::flerp(); } } class b { protected static; public static function flerp() { self::$abc = 1; } } class c extends b { public function __construct() { print self::$abc."\n"; $a = new a(); print self::$abc."\n"; } } new a;
Output for 5.4.0 - 5.4.3
Parse error: syntax error, unexpected ';', expecting variable (T_VARIABLE) in gV3EB on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.13
Parse error: syntax error, unexpected ';', expecting T_VARIABLE in gV3EB on line 9
Process exited with code 255.

preferences:
167.9 ms | 1395 KiB | 25 Q