3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date( strtotime( 'today') ); ini_set( 'date.timezone', ''); echo date();
Output for 5.1.0 - 5.4.11, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0RC5
1405375200 Warning: date() expects at least 1 parameter, 0 given in /in/LspEO on line 4
Output for 5.4.12 - 5.6.25
1405375200 Warning: ini_set(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. in /in/LspEO on line 3 Warning: date() expects at least 1 parameter, 0 given in /in/LspEO on line 4
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.0.5
1405438533 Warning: Wrong parameter count for date() in /in/LspEO on line 4
Output for 5.0.0 - 5.0.2
1405375200 Warning: Wrong parameter count for date() in /in/LspEO on line 4