3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.27, 5.4.0 - 5.4.17
Fatal error: Abstract function BadTemplate::setVariable() cannot contain body in /in/02HKU on line 18
Process exited with code 255.

preferences:
183.52 ms | 1387 KiB | 55 Q