3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("date.timezone", "America/New_York"); echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n"; echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +2 hours'))."\n"; echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +3 hours'))."\n"; echo "\n"; echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n"; echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +2 hours'))."\n"; echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +3 hours'))."\n";

preferences:
33.94 ms | 402 KiB | 5 Q