3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x1 = strtotime('00-00-00 00:00:00'); $x2 = strtotime('0000-00-00 00:00:00'); $x3 = 0; echo date (DATE_RFC2822, $x1)."\n"; echo date (DATE_RFC2822, $x2)."\n"; echo date (DATE_RFC2822, $x3)."\n";
Output for 8.0.21 - 8.0.30, 8.1.8 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
Tue, 30 Nov 1999 00:00:00 +0100 Tue, 30 Nov -0001 00:00:00 +0019 Thu, 01 Jan 1970 01:00:00 +0100
Output for 5.5.20 - 5.5.38, 5.6.4 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.20, 8.1.0 - 8.1.7
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 7.3.32 - 7.3.33, 8.0.13
Tue, 30 Nov 1999 00:00:00 +0000 Mon, 30 Nov -0001 00:00:00 +0000 Thu, 01 Jan 1970 00:00:00 +0000
Output for 5.4.0 - 5.4.45, 5.5.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

preferences:
102.19 ms | 410 KiB | 5 Q