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) { } }
Output for 5.4.18 - 5.4.19
Fatal error: Abstract function BadTemplate::setVariable() cannot contain body in /in/WA3oq 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/0cUna on line 18
Process exited with code 255.

preferences:
184.41 ms | 1395 KiB | 55 Q