3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump ( date(DATE_RFC3339, strtotime('today')), date(DATE_RFC3339, strtotime('tomorrow')), date(DATE_RFC3339, strtotime('today at last minute')), date(DATE_RFC3339, strtotime('tomorrow at last minute')) );
Output for 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(25) "2013-06-25T00:00:00+02:00" string(25) "2013-06-26T00:00:00+02:00" string(25) "1970-01-01T01:00:00+01:00" string(25) "1970-01-01T01:00:00+01:00"
Output for 5.1.0 - 5.1.2
Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 4 Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 5 Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 6 Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 7 string(21) "TueAMCESTE_RJuneC3339" string(21) "WedAMCESTE_RJuneC3339" string(23) "ThuAMCETE_RJanuaryC3339" string(23) "ThuAMCETE_RJanuaryC3339"
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.0.5
Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 4 Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 5 Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 6 Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 7 string(21) "TuePMCESTE_RJuneC3339" string(21) "WedPMCESTE_RJuneC3339" string(21) "TuePMCESTE_RJuneC3339" string(21) "WedPMCESTE_RJuneC3339"
Output for 5.0.0 - 5.0.2
Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 4 Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 5 Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 6 Notice: Use of undefined constant DATE_RFC3339 - assumed 'DATE_RFC3339' in /in/a0mcn on line 7 string(21) "TueAMCESTE_RJuneC3339" string(21) "WedAMCESTE_RJuneC3339" string(21) "TueAMCESTE_RJuneC3339" string(21) "WedAMCESTE_RJuneC3339"