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: Class BadTemplate contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (BadTemplate::setVariable) in /in/VPEAn on line 17
Process exited with code 255.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Fatal error: Class BadTemplate contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (BadTemplate::setVariable) in /in/95YET on line 17
Process exited with code 255.

preferences:
184.06 ms | 1400 KiB | 55 Q