3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 c;
Output for 5.4.0 - 5.4.3
Parse error: syntax error, unexpected ';', expecting variable (T_VARIABLE) in /in/itlc5 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 /in/itlc5 on line 9
Process exited with code 255.