3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyDateTime implements \DateTimeInterface { public function diff($datetime2, $absolute = false) { // TODO: Implement diff() method. } public function format($format) { // TODO: Implement format() method. } public function getOffset() { // TODO: Implement getOffset() method. } public function getTimestamp() { // TODO: Implement getTimestamp() method. } public function getTimezone() { // TODO: Implement getTimezone() method. } public function __wakeup() { // TODO: Implement __wakeup() method. } }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
163.1 ms | 3524 KiB | 10 Q