3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $online = '22.01.2014 14:40 UTC+4'; $online = strtotime($online); echo DATE_RFC822.'<br>'; echo date(DATE_RFC822, $online).'<br>'; echo date("H:i d.m.Y", $online).'<br>';
Output for 5.2.0 - 7.1.0
D, d M y H:i:s O<br>Wed, 22 Jan 14 15:40:00 +0100<br>15:40 22.01.2014<br>
Output for 5.1.3 - 5.1.6
D, d M Y H:i:s T<br>Wed, 22 Jan 2014 15:40:00 CET<br>15:40 22.01.2014<br>
Output for 5.1.2
D, d M Y H:i:s T<br>Wed, 22 Jan 2014 11:40:00 CET<br>11:40 22.01.2014<br>
Output for 5.1.1
D, d M Y H:i:s T<br>Thu, 01 Jan 1970 01:00:00 CET<br>01:00 01.01.1970<br>
Output for 5.1.0
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/JHZ6d on line 4 DATE_RFC822<br> Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/JHZ6d on line 5 ThuAMCETE_RJanuaryC822<br>01:00 01.01.1970<br>
Output for 4.3.0 - 5.0.5
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/JHZ6d on line 4 DATE_RFC822<br> Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/JHZ6d on line 5 ThuAMCETE_RJanuaryC822<br>00:59 01.01.1970<br>