3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time1 = strtotime('20:00:00'); $time2 = strtotime('04:00:00'); $diff = $time2 - $time1; echo 'Time 1: '.date('H:i:s', $time1).'<br>'; echo 'Time 2: '.date('H:i:s', $time2).'<br>'; if($diff){ echo 'Diff: '.date('H:i:s', $diff); }else{ echo 'No Diff.'; }
Output for git.master, git.master_jit, rfc.property-hooks
Time 1: 20:00:00<br>Time 2: 04:00:00<br>Diff: 09:00:00

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:
45.22 ms | 401 KiB | 8 Q