3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = '2018-06-08 15:20:30'; $dt = new \DateTimeImmutable($time); $di = new \DateInterval('PT15H20M30S'); echo $dt->format('Y-m-d H:i:s')."\n"; echo $di->format('%H:%I:%s')."\n"; echo strftime('%H:%I:%s', strtotime($time))."\n"; # %I = hodiny (01-12), %s = Unix epoch timestamp echo strftime('%H:%M:%S', strtotime($time));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
151.24 ms | 2265 KiB | 10 Q