3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "datetime: " . date('Y-m-d H:i:s') . "\n"; echo "datetime with offset: " . date('Y-m-d H:i:s', date('Y-m-d H:i:s') + 32400);
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
datetime: 2016-01-07 22:23:25 Warning: A non-numeric value encountered in /in/JJfPD on line 3 datetime with offset: 1970-01-01 10:33:36
Output for 8.0.13
datetime: 2016-01-07 21:23:25 Warning: A non-numeric value encountered in /in/JJfPD on line 3 datetime with offset: 1970-01-01 09:33:36
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
datetime: 2016-01-07 22:23:25 Notice: A non well formed numeric value encountered in /in/JJfPD on line 3 datetime with offset: 1970-01-01 10:33:36
Output for 7.3.32 - 7.3.33
datetime: 2016-01-07 21:23:25 datetime with offset: 1970-01-01 09:33:36
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20
datetime: 2016-01-07 22:23:25 datetime with offset: 1970-01-01 10:33:36

preferences:
195.93 ms | 402 KiB | 225 Q