3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x1 = strtotime('00-00-00 00:00:00'); $x2 = strtotime('0000-00-00 00:00:00'); echo date (DATE_RFC2822, $x1)."\n"; echo date (DATE_RFC2822, $x2)."\n"; echo date (DATE_RFC2822, 0)."\n";
based on sQXSY
Output for 5.5.20 - 5.5.37, 5.6.4 - 7.2.0
Tue, 30 Nov 1999 00:00:00 +0100 Mon, 30 Nov -0001 00:00:00 +0019 Thu, 01 Jan 1970 01:00:00 +0100
Output for 5.4.0 - 5.5.19, 5.6.0 - 5.6.3
Tue, 30 Nov 1999 00:00:00 +0100 Wed, 30 Nov -0001 00:00:00 +0019 Thu, 01 Jan 1970 01:00:00 +0100