3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = Date(); echo "\ndate: ".$date." (".strtotime($date).")"; echo "\n\n";
based on EgSYK
Output for 5.1.2 - 7.2.0
Warning: date() expects at least 1 parameter, 0 given in /in/COPGM on line 2 date: ()
Output for 5.1.0 - 5.1.1
Warning: date() expects at least 1 parameter, 0 given in /in/COPGM on line 2 date: (1418793299)
Output for 5.0.1 - 5.0.5
Warning: Wrong parameter count for date() in /in/COPGM on line 2 Warning: strtotime(): Called with an empty time parameter. in /in/COPGM on line 3 date: (-1)
Output for 4.3.2 - 5.0.0
Warning: Wrong parameter count for date() in /in/COPGM on line 2 Notice: strtotime(): Called with empty time parameter in /in/COPGM on line 3 date: (1418770800)
Output for 4.3.0 - 4.3.1
Warning: Wrong parameter count for date() in /in/COPGM on line 2 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/COPGM on line 3 date: (1418770800)