3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = strtotime('first day next month'); echo date($date, 'Y-m-d H:is'), PHP_EOL;
Output for 7.0.0 - 7.1.0
Warning: date() expects parameter 2 to be integer, string given in /in/P7mVj on line 5
Output for 5.1.0 - 5.6.28
Warning: date() expects parameter 2 to be long, string given in /in/P7mVj on line 5
Output for 4.4.0 - 4.4.9, 5.0.5
1417607692
Output for 4.3.10 - 4.3.11, 5.0.3 - 5.0.4
1420286092
Output for 5.0.2
1420239600
Output for 5.0.0 - 5.0.1
1420239600 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/P7mVj on line 5 PHP_EOL
Output for 4.3.0 - 4.3.9
1420286092 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/P7mVj on line 5 PHP_EOL