3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Answer { public static function get() { return new self(); } public function the() { return new -self(); } public function answer() { return 4; } } // end editing here $answer = new Answer; var_dump($answer->get());
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '-' in /in/Br4Lg on line 12
Process exited with code 255.