3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump((bool) '0000-00-00 00:00:00'); var_dump((int) '0000-00-00 00:00:00'); var_dump(strtotime('0000-00-00 00:00:00')); var_dump(strtotime('0000-00-00 00:00:01'));
Output for 5.2.6 - 7.1.0
bool(true) int(0) int(-62169985172) int(-62169985171)
Output for 5.2.4 - 5.2.5
bool(true) int(0) bool(false) bool(false)
Output for 4.3.0, 5.1.0 - 5.2.3
bool(true) int(0) int(943916400) int(943916401)
Output for 4.3.1 - 5.0.5
bool(true) int(0) int(943920000) int(943920001)