3v4l.org

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