3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time1 = strtotime('00:00:00 +0000'); $time2 = strtotime('00:00:07 +0000'); $epoch = strtotime('01 Jan 1970'); $diff = $time2 - $time1; var_dump($time1,$time2,$epoch,$diff); $diff = date('H:i:s', $epoch+$diff); echo $diff;
Output for git.master, git.master_jit, rfc.property-hooks
int(1479945600) int(1479945607) int(-3600) int(7) 00:00:07

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:
37.6 ms | 405 KiB | 5 Q