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";

preferences:
60.68 ms | 402 KiB | 5 Q