3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$interval = new DateInterval('PT0.123S'); //echo $interval->format('%f'); $date1 = new DateTime(); $date2 = new DateTime(); $foo = $date2->diff($date1); var_dump($foo->format('%f'));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
150.93 ms | 2058 KiB | 11 Q