3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Now: ", $now = strtotime("now"), "\n"; echo "Then: ", $then = strtotime("now -20 years"), "\n"; echo "400 years ago: ", $now2 = strtotime("now -400 years"), "\n"; echo "420 years ago: ", $then2 = strtotime("now -420 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 = 20*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: 1453302694 Then: 822150694 400 years ago: -11169475678 420 years ago: -11800627678 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours

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