3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = strtotime(date() . ' + 4 hours'); var_dump($foo); $bar = strtotime('+4 hours'); var_dump($bar);
Output for 5.1.2 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Warning: date() expects at least 1 parameter, 0 given in /in/IelN8 on line 3 int(1402500028) int(1402500028)
Output for hhvm-3.10.0
Warning: date() expects at least 1 parameter, 0 given in /in/IelN8 on line -1 int(1402500028) int(1402500028)
Output for 5.1.0 - 5.1.1
Warning: date() expects at least 1 parameter, 0 given in /in/IelN8 on line 3 bool(false) int(1402500028)
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.0.5
Warning: Wrong parameter count for date() in /in/IelN8 on line 3 int(1402500028) int(1402500028)
Output for 5.0.0 - 5.0.2
Warning: Wrong parameter count for date() in /in/IelN8 on line 3 int(1402452000) int(1402452000)