3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d H:i:s'); echo strtotime("-1 hours","now"), "\n";;
Output for hhvm-3.10.0, 7.0.0 - 7.1.0
2012-09-15 18:02:44 Warning: strtotime() expects parameter 2 to be integer, string given in /in/1bnO7 on line 3
Output for hhvm-3.12.0
2012-09-15 18:02:45 Warning: strtotime() expects parameter 2 to be integer, string given in /in/1bnO7 on line 3
Output for 5.2.1 - 5.5.27, 5.5.29 - 5.6.28
2012-09-15 18:02:44 Warning: strtotime() expects parameter 2 to be long, string given in /in/1bnO7 on line 3
Output for 5.5.28
2012-09-15 18:02:45 Warning: strtotime() expects parameter 2 to be long, string given in /in/1bnO7 on line 3
Output for 5.1.0 - 5.2.0
2012-09-15 18:02:44
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.0.5
2012-09-15 18:02:44-3600
Output for 5.0.0 - 5.0.2
2012-09-15 18:02:44-7200