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 $x1 . "\n"; echo $x2 . "\n"; echo date (DATE_RFC2822, $x1)."\n"; echo date (DATE_RFC2822, $x2)."\n";
based on ZIkpR
Output for 5.5.20 - 5.5.37, 5.6.4 - 7.2.0
943916400 -62169985172 Tue, 30 Nov 1999 00:00:00 +0100 Mon, 30 Nov -0001 00:00:00 +0019
Output for 5.4.0 - 5.5.19, 5.6.0 - 5.6.3
943916400 -62169985172 Tue, 30 Nov 1999 00:00:00 +0100 Wed, 30 Nov -0001 00:00:00 +0019