3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( date( 'Y-m-d H:i:s'), date( 'Y-m-d H:i:s', '' ) );
based on lXJae
Output for 7.0.0 - 7.2.0
Warning: date() expects parameter 2 to be integer, string given in /in/HBrP0 on line 3 string(19) "2015-09-01 01:29:21" bool(false)
Output for 5.1.0 - 5.4.37, 5.4.39 - 5.6.28
Warning: date() expects parameter 2 to be long, string given in /in/HBrP0 on line 3 string(19) "2015-09-01 01:29:21" bool(false)
Output for 5.4.38
Warning: date() expects parameter 2 to be long, string given in /in/HBrP0 on line 3 string(19) "2015-09-01 01:29:22" bool(false)
Output for 4.3.0 - 4.4.7, 4.4.9 - 5.0.5
string(19) "2015-09-01 01:29:21" string(19) "1970-01-01 01:00:00"
Output for 4.4.8
string(19) "2015-09-01 01:29:20" string(19) "1970-01-01 01:00:00"