3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class schade { public function __construct(){ anvadb::disconnect(); } } class odbcdb { public static function __callStatic($method, $arguments) { $this->method($arguments) } public function disconnect() { $this->test(); } public static function test() { echo 'odbc::test()'; } } class anvadb extends odbcdb { public static function test() { echo 'anvadb::test()'; } } new schade;
Output for 5.3.0 - 5.4.3
Parse error: syntax error, unexpected '}' in /in/Ni1RY on line 12
Process exited with code 255.