3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_start = date('Y-m-d', strtotime('+1 day', time())); $date_end = date('Y-m-d', strtotime('+3 day', $date_start)); var_dump($date_start, $date_end);
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.32, 7.1.0 - 7.1.24, 7.2.0 - 7.2.12
Notice: A non well formed numeric value encountered in /in/4SQrY on line 3 string(10) "2014-05-13" string(10) "1970-01-04"
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5
string(10) "2014-05-13" string(10) "1970-01-04"

preferences:
179.87 ms | 402 KiB | 283 Q