3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = strtotime('2011-01-01T10:20:30Z'); $t2 = strtotime('2011-01-01 10:20:30'); $f = 'Y-m-d H:i:s'; echo date($f, $t1), PHP_EOL, date($f, $t2), PHP_EO, $t1L, PHP_EOL, $t2;
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.19, 8.3.0 - 8.3.7
2011-01-01 11:20:30 2011-01-01 10:20:30 Fatal error: Uncaught Error: Undefined constant "PHP_EO" in /in/JFVt0:6 Stack trace: #0 {main} thrown in /in/JFVt0 on line 6
Process exited with code 255.
Output for 8.0.13
2011-01-01 10:20:30 2011-01-01 10:20:30 Fatal error: Uncaught Error: Undefined constant "PHP_EO" in /in/JFVt0:6 Stack trace: #0 {main} thrown in /in/JFVt0 on line 6
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
2011-01-01 11:20:30 2011-01-01 10:20:30 Warning: Use of undefined constant PHP_EO - assumed 'PHP_EO' (this will throw an Error in a future version of PHP) in /in/JFVt0 on line 6 PHP_EO Notice: Undefined variable: t1L in /in/JFVt0 on line 6 1293873630
Output for 7.3.32 - 7.3.33
2011-01-01 10:20:30 2011-01-01 10:20:30 Warning: Use of undefined constant PHP_EO - assumed 'PHP_EO' (this will throw an Error in a future version of PHP) in /in/JFVt0 on line 6 PHP_EO 1293877230
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.25, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
2011-01-01 11:20:30 2011-01-01 10:20:30 Notice: Use of undefined constant PHP_EO - assumed 'PHP_EO' in /in/JFVt0 on line 6 PHP_EO Notice: Undefined variable: t1L in /in/JFVt0 on line 6 1293873630

preferences:
195.69 ms | 403 KiB | 270 Q