3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to_date = time(); // Input your date here e.g. strtotime("2014-01-02") $from_date = strtotime("2012-01-31"); $day_diff = $to_date - $from_date; echo floor($day_diff/(60*60*24)); - See more at: http://www.w3resource.com/php-exercises/php-date-exercises.php#sthash.r2qN7FpE.dpuf

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.290.3500.03718.95
5.4.280.3800.04019.16
5.4.270.3870.04019.22
5.4.260.3400.03718.87
5.4.250.3400.03318.96
5.4.240.3670.03319.31
5.4.230.3830.03318.87
5.4.220.3130.03319.08
5.4.210.3230.03318.94
5.4.200.3630.03319.30
5.4.190.3570.03718.84
5.4.180.3370.03718.93
5.4.170.3470.04018.86
5.4.160.3430.04019.20
5.4.150.3370.03719.18
5.4.140.3430.03016.41
5.4.130.3300.03716.38
5.4.120.3600.03716.65
5.4.110.3670.03316.40
5.4.100.3370.03316.45
5.4.90.3400.03016.56
5.4.80.3800.03716.46
5.4.70.3370.03316.39
5.4.60.3370.03016.23
5.4.50.3870.04016.52
5.4.40.3730.03016.43
5.4.30.3570.03716.37
5.4.20.3330.03316.51
5.4.10.3330.03316.42
5.4.00.3700.03015.85
5.3.280.3370.03714.54
5.3.270.3870.03014.45
5.3.260.3400.03714.51
5.3.250.3400.03714.45
5.3.240.3430.03014.45
5.3.230.3500.04314.45
5.3.220.3470.03314.55
5.3.210.3370.04014.41
5.3.200.3400.03314.40
5.3.190.3470.04314.51
5.3.180.3870.03714.66
5.3.170.3630.03714.50
5.3.160.3430.04014.47
5.3.150.3470.02714.40
5.3.140.3930.03014.63
5.3.130.3400.04314.42
5.3.120.3100.03714.48
5.3.110.3300.04314.50
5.3.100.3600.03714.00
5.3.90.3670.03014.05
5.3.80.3070.04013.97
5.3.70.2970.04013.98
5.3.60.3500.04013.95
5.3.50.3630.04013.79
5.3.40.3530.03013.88
5.3.30.3470.03713.68
5.3.20.3400.03013.54
5.3.10.3500.02013.45
5.3.00.3370.04013.57

preferences:
140.23 ms | 1394 KiB | 7 Q