3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Now: ", $now = strtotime("now"), "\n"; echo "Then: ", $then = strtotime("now -2 years"), "\n"; echo "400 years ago: ", $now2 = strtotime("now -6 years"), "\n"; echo "420 years ago: ", $then2 = strtotime("now -8 years"), "\n"; echo "Dif 1: ", $dif1 = ($now-$then) / 60 / 60, " hours\n"; echo "Dif 2: ", $dif2 = ($now2-$then2) / 60 / 60, " hours\n"; echo "Simple: ", $simple = 2*365*24, " hours\n"; echo "Dif1 to dif2 ", $dif1 - $dif2, "hours\n"; echo "Dif1 to simple ", $dif1 - $simple, "hours\n";
Output for git.master, git.master_jit, rfc.property-hooks
Now: 1453302810 Then: 1390230810 400 years ago: 1264000410 420 years ago: 1200842010 Dif 1: 17520 hours Dif 2: 17544 hours Simple: 17520 hours Dif1 to dif2 -24hours Dif1 to simple 0hours

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