3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('r', strtotime('9999-12-31T00:00:00')); echo date('r', strtotime('+ 5 years'));
Output for 5.0.3 - 5.0.5, 5.2.6 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Fri, 31 Dec 9999 00:00:00 +0100Thu, 14 Jun 2018 09:20:49 +0200
Output for 5.1.2 - 5.2.5
Thu, 01 Jan 1970 01:00:00 +0100Thu, 14 Jun 2018 09:20:49 +0200
Output for 5.1.0 - 5.1.1
Thu, 01 Jan 1970 01:00:00 +0100Thu, 01 Jan 1970 01:00:00 +0100
Output for 5.0.0 - 5.0.2
Fri, 31 Dec 9999 00:00:00 +0100Thu, 14 Jun 2018 00:00:00 +0200
Output for 4.3.5 - 4.4.9
Fri, 31 Dec 9999 08:00:00 +0100Thu, 14 Jun 2018 09:20:49 +0200
Output for 4.3.0 - 4.3.4
Thu, 30 Dec 9999 18:00:00 +0100Thu, 14 Jun 2018 09:20:49 +0200