3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(min(NULL, false)); var_dump(min(0, false)); var_dump(min(false, 0)); var_dump(min(NULL, "2012-12-21")); var_dump(min("2011-01-10", "2012-12-21")); var_dump(min("2013-01-10", "2012-12-21")); var_dump(min("2012-12-21", "2012-12-21 00:00:01")); var_dump(min("2012-12-21", "2012-12-20 23:59:59"));
based on YKnvZ
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
NULL int(0) bool(false) NULL string(10) "2011-01-10" string(10) "2012-12-21" string(10) "2012-12-21" string(19) "2012-12-20 23:59:59"