3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface iTemplate { public function setVariable($name, $var); public function getHtml($template); } class BadTemplate implements iTemplate { private $vars = array(); abstract public function setVariable($name, $var) { $this->vars[$name] = $var; } }
Output for 5.4.18 - 5.4.19
Fatal error: Abstract function BadTemplate::setVariable() cannot contain body in /in/8eJMN on line 18
Process exited with code 255.
Output for 5.3.0 - 5.4.17
Fatal error: Abstract function BadTemplate::setVariable() cannot contain body in /in/02HKU on line 18
Process exited with code 255.