3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ts1 = '10-5-2013'; $ts2 = '20-5-2013'; echo date('r', strtotime($ts1)); echo date('r', strtotime($ts2));
Output for 5.1.3 - 7.1.0
Fri, 10 May 2013 00:00:00 +0200Mon, 20 May 2013 00:00:00 +0200
Output for 5.1.0 - 5.1.2
Thu, 01 Jan 1970 01:00:00 +0100Thu, 01 Jan 1970 01:00:00 +0100
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.0.5
Tue, 03 Nov 2015 00:00:00 +0100Mon, 03 Nov 2025 00:00:00 +0100
Output for 4.3.0 - 4.3.10, 5.0.0 - 5.0.3
Tue, 3 Nov 2015 00:00:00 +0100Mon, 3 Nov 2025 00:00:00 +0100