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 $now2 = strtotime("now +1 year"), "\n"; echo $then2 = strtotime("now -19 years"), "\n"; echo "Dif 1 ", $now-$then, "\n"; echo "Dif 2 ", $now2-$then2, "\n";

preferences:
53.05 ms | 402 KiB | 5 Q