3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo implements DateTimeInterface { /** * @inheritDoc */ public function diff($datetime2, $absolute = false) { // TODO: Implement diff() method. } /** * @inheritDoc */ public function format($format) { // TODO: Implement format() method. } /** * @inheritDoc */ public function getOffset() { // TODO: Implement getOffset() method. } /** * @inheritDoc */ public function getTimestamp() { // TODO: Implement getTimestamp() method. } /** * @inheritDoc */ public function getTimezone() { // TODO: Implement getTimezone() method. } /** * @inheritDoc */ public function __wakeup() { // TODO: Implement __wakeup() method. } }
based on eMn15
Output for 7.0.0 - 7.2.0
Fatal error: DateTimeInterface can't be implemented by user classes in /in/468RB on line 3
Process exited with code 255.
Output for 5.5.24 - 5.6.28
Fatal error: DateTimeInterface can't be implemented by user classes in /in/468RB on line 4
Process exited with code 255.
Output for 5.3.21 - 5.4.45
Fatal error: Interface 'DateTimeInterface' not found in /in/468RB on line 4
Process exited with code 255.