3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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;
based on bhnS9
Output for 7.2.0
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 5.4.0 - 7.1.10
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