3v4l.org

run code in 300+ PHP versions simultaneously
<?php // in examples below, this script was run at 30.10.2021 echo date("Y-m-d H:i:s\n", strtotime("+1.5 year", time())); echo date("Y-m-d H:i:s\n"); echo date("Y-m-d H:i:s\n", strtotime("-1.5 year", time())); ?>

preferences:
38.55 ms | 406 KiB | 5 Q