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; echo date(DATE_RFC822, $online); echo date("H:i d.m.Y", $online);
Output for 5.2.0 - 5.6.23, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
D, d M y H:i:s OWed, 22 Jan 14 15:40:00 +010015:40 22.01.2014
Output for 5.1.3 - 5.1.6
D, d M Y H:i:s TWed, 22 Jan 2014 15:40:00 CET15:40 22.01.2014
Output for 5.1.2
D, d M Y H:i:s TWed, 22 Jan 2014 11:40:00 CET11:40 22.01.2014
Output for 5.1.1
D, d M Y H:i:s TThu, 01 Jan 1970 01:00:00 CET01:00 01.01.1970
Output for 5.1.0
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/sDYFZ on line 4 DATE_RFC822 Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/sDYFZ on line 5 ThuAMCETE_RJanuaryC82201:00 01.01.1970
Output for 4.3.0 - 5.0.5
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/sDYFZ on line 4 DATE_RFC822 Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/sDYFZ on line 5 ThuAMCETE_RJanuaryC82200:59 01.01.1970