3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $online = '22.01.2014 04:40 +04'; $online = strtotime($online); echo gmdate(DATE_RFC822, $online).PHP_EOL; date_default_timezone_set('Europe/Moscow'); echo date("H:i d.m.Y", $online).PHP_EOL;
Output for 5.3.7 - 7.1.0
Wed, 22 Jan 14 00:40:00 +0000 04:40 22.01.2014
Output for 5.2.0 - 5.3.6
Wed, 22 Jan 14 00:40:00 +0000 03:40 22.01.2014
Output for 5.1.1 - 5.1.6
Wed, 22 Jan 2014 00:40:00 GMT 03:40 22.01.2014
Output for 5.1.0
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/ZjInL on line 4 WedAMGMTE_RJanuaryC822 03:40 22.01.2014
Output for 5.0.2 - 5.0.5
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/ZjInL on line 4 WedPMGMTE_RDecemberC822 Fatal error: Call to undefined function date_default_timezone_set() in /in/ZjInL on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.1
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/ZjInL on line 4 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ZjInL on line 4 WedPMGMTE_RDecemberC822PHP_EOL Fatal error: Call to undefined function date_default_timezone_set() in /in/ZjInL on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/ZjInL on line 4 WedPMGMTE_RDecemberC822 Fatal error: Call to undefined function: date_default_timezone_set() in /in/ZjInL on line 5
Process exited with code 255.
Output for 4.3.10 - 4.4.4
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/ZjInL on line 4 WedPMGMTE_RDecemberC822 Fatal error: Call to undefined function: date_default_timezone_set() in /in/ZjInL on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.9
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/ZjInL on line 4 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ZjInL on line 4 WedPMGMTE_RDecemberC822PHP_EOL Fatal error: Call to undefined function: date_default_timezone_set() in /in/ZjInL on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant DATE_RFC822 - assumed 'DATE_RFC822' in /in/ZjInL on line 4 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ZjInL on line 4 WedPMGMTE_RDecemberC822PHP_EOL Fatal error: Call to undefined function: date_default_timezone_set() in /in/ZjInL on line 5