3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php class Test { public $value = 2; public function __construct() { $this->value = 3; } public static function outputTimesFive() { echo self::$value * 5; } } $a = new Test(); echo Test::outputTimesFive();
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected '<' in /in/ihWR3 on line 3
Process exited with code 255.