3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class X { static protected $var; } class XA extends X { static public function setVar($v) { self::$var = $v; } static public funtion getVar() { self::$var; } } class XB extends X { static public function setVar($v) { self::$var = $v; } static public funtion getVar() { self::$var; } } XA::setVar(1); echo XB::getVar();
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'funtion' (T_STRING), expecting variable (T_VARIABLE) in /in/LCeW1 on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in /in/LCeW1 on line 13
Process exited with code 255.