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));
Output for git.master, git.master_jit, rfc.property-hooks
2018-06-08 15:20:30 15:20:30 Deprecated: Function strftime() is deprecated in /in/1WLVk on line 8 15:03:-1 Deprecated: Function strftime() is deprecated in /in/1WLVk on line 9 15:20:30

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
130.45 ms | 405 KiB | 5 Q