3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = strtotime('first day next month'); echo date('Y-m-d H:is', $date), PHP_EOL;
based on P7mVj
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.2.17, 5.3.3 - 7.1.0
2014-12-03 12:5509
Output for 5.3.0 - 5.3.2
2014-12-01 12:5509
Output for 4.3.10 - 4.3.11, 5.0.3 - 5.0.4
2015-01-03 12:5509
Output for 5.0.2
2015-01-03 00:0000
Output for 5.0.0 - 5.0.1
2015-01-03 00:0000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Cf3Y0 on line 5 PHP_EOL
Output for 4.3.0 - 4.3.9
2015-01-03 12:5509 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Cf3Y0 on line 5 PHP_EOL