3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $now = strtotime("now"), "\n"; echo $then = strtotime("now -20 years"), "\n"; echo $now2 = strtotime("now +1 year"), "\n"; echo $then2 = strtotime("now -19 years"), "\n"; echo $now-$then, "\n"; echo $now2-$then2, "\n";
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.3, 7.3.5 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
1453300381 822148381 1484922781 853770781 631152000 631152000
Output for 7.3.4
1453300382 822148382 1484922782 853770782 631152000 631152000

preferences:
194.26 ms | 401 KiB | 326 Q