3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! echo strtotime("2013-07-09 02:58:53").','; $datetime = strtotime("2013-07-09 02:58:53"); echo date("Y-m-d H:i:s", $datetime).','; echo date("m/d/y",datetime);
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1373331533,2013-07-09 02:58:53, Notice: Use of undefined constant datetime - assumed 'datetime' in /in/PR7rl on line 7 Warning: date() expects parameter 2 to be integer, string given in /in/PR7rl on line 7
Output for 5.1.0 - 5.6.28
1373331533,2013-07-09 02:58:53, Notice: Use of undefined constant datetime - assumed 'datetime' in /in/PR7rl on line 7 Warning: date() expects parameter 2 to be long, string given in /in/PR7rl on line 7
Output for 4.3.0 - 5.0.5
1373331533,2013-07-09 02:58:53, Notice: Use of undefined constant datetime - assumed 'datetime' in /in/PR7rl on line 7 01/01/70