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); echo "date now: " + date('ymd');
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:24:13 Warning: A non-numeric value encountered in /in/t88Rv on line 3 datetime with offset: 1970-01-01 10:33:36 Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /in/t88Rv:4 Stack trace: #0 {main} thrown in /in/t88Rv on line 4
Process exited with code 255.
Output for 8.0.13
datetime: 2016-01-07 21:24:13 Warning: A non-numeric value encountered in /in/t88Rv on line 3 datetime with offset: 1970-01-01 09:33:36 Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /in/t88Rv:4 Stack trace: #0 {main} thrown in /in/t88Rv on line 4
Process exited with code 255.
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:24:13 Notice: A non well formed numeric value encountered in /in/t88Rv on line 3 datetime with offset: 1970-01-01 10:33:36 Warning: A non-numeric value encountered in /in/t88Rv on line 4 160107
Output for 7.3.32 - 7.3.33
datetime: 2016-01-07 21:24:13 datetime with offset: 1970-01-01 09:33:36 Warning: A non-numeric value encountered in /in/t88Rv on line 4 160107
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.25, 7.0.0 - 7.0.20
datetime: 2016-01-07 22:24:13 datetime with offset: 1970-01-01 10:33:36160107

preferences:
200.16 ms | 402 KiB | 225 Q