3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Get current time $date1 = mktime(0,0,0,07,01,2014); // Get the timestamp of 2006 October 20 $date2 = mktime(0,0,0,07,05,2014); $dateDiff = $date1 - $date2; $fullDays = floor($dateDiff/(60*60*24)); $fullHours = floor(($dateDiff-($fullDays*60*60*24))/(60*60)); $fullMinutes = floor(($dateDiff-($fullDays*60*60*24)-($fullHours*60*60))/60); echo "Differernce is $fullDays days, $fullHours hours and $fullMinutes minutes.";

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)
8.3.60.0080.00616.50
8.3.50.0130.00822.09
8.3.40.0090.00918.89
8.3.30.0090.00619.09
8.3.20.0040.00420.25
8.3.10.0040.00423.83
8.3.00.0040.00420.87
8.2.180.0060.01018.43
8.2.170.0090.00622.96
8.2.160.0000.01420.47
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0060.00322.25
8.2.110.0040.00422.20
8.2.100.0070.00417.97
8.2.90.0070.00319.25
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00818.16
8.2.50.0030.00618.07
8.2.40.0030.00620.20
8.2.30.0040.00418.29
8.2.20.0060.00317.81
8.2.10.0040.00418.10
8.2.00.0080.00217.72
8.1.280.0100.00325.92
8.1.270.0050.00523.96
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00324.10
8.1.230.0040.00719.10
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00917.48
8.1.190.0000.00917.35
8.1.180.0030.00619.26
8.1.170.0000.00818.63
8.1.160.0000.00822.03
8.1.150.0070.00018.69
8.1.140.0000.00717.46
8.1.130.0070.00017.96
8.1.120.0070.00017.59
8.1.110.0030.00517.64
8.1.100.0030.00317.59
8.1.90.0000.00717.54
8.1.80.0080.00017.64
8.1.70.0000.01117.41
8.1.60.0060.00317.54
8.1.50.0000.00817.56
8.1.40.0070.00317.57
8.1.30.0050.00317.74
8.1.20.0040.00417.60
8.1.10.0040.00417.51
8.1.00.0040.00417.64
8.0.300.0040.00419.14
8.0.290.0000.00717.43
8.0.280.0070.00018.64
8.0.270.0070.00017.34
8.0.260.0030.00317.31
8.0.250.0030.00317.20
8.0.240.0060.00317.12
8.0.230.0040.00417.08
8.0.220.0030.00316.95
8.0.210.0000.00717.02
8.0.200.0000.00617.15
8.0.190.0030.00317.15
8.0.180.0030.00517.15
8.0.170.0000.00817.18
8.0.160.0030.00317.07
8.0.150.0060.00616.98
8.0.140.0000.00717.09
8.0.130.0000.00613.50
8.0.120.0060.00317.01
8.0.110.0070.00017.12
8.0.100.0000.00817.15
8.0.90.0040.00417.20
8.0.80.0090.01217.11
8.0.70.0030.00516.92
8.0.60.0030.00517.00
8.0.50.0080.00017.05
8.0.30.0120.00617.13
8.0.20.0110.00817.41
8.0.10.0000.00717.23
8.0.00.0100.01117.00
7.4.330.0030.00315.00
7.4.320.0030.00316.60
7.4.300.0000.00616.53
7.4.290.0000.00816.72
7.4.280.0040.00416.47
7.4.270.0040.00416.57
7.4.260.0080.00016.58
7.4.250.0070.00016.45
7.4.240.0050.00216.67
7.4.230.0070.00016.79
7.4.220.0090.00916.47
7.4.210.0100.00816.63
7.4.200.0060.00316.74
7.4.190.0000.00716.74
7.4.160.0080.00816.59
7.4.150.0220.00417.40
7.4.140.0160.00517.86
7.4.130.0110.00616.63
7.4.120.0050.01216.61
7.4.110.0160.00016.76
7.4.100.0120.01016.43
7.4.90.0080.00916.52
7.4.80.0130.01519.39
7.4.70.0070.01216.72
7.4.60.0070.01716.45
7.4.50.0000.00516.59
7.4.40.0060.01016.58
7.4.30.0110.00716.68
7.4.00.0070.00714.90
7.3.330.0030.00313.29
7.3.320.0050.00013.36
7.3.310.0040.00416.60
7.3.300.0030.00316.48
7.3.290.0140.00016.51
7.3.280.0120.00716.44
7.3.270.0060.01017.40
7.3.260.0120.00616.56
7.3.250.0100.00816.58
7.3.240.0090.00916.50
7.3.230.0100.00716.66
7.3.210.0090.00916.72
7.3.200.0060.01319.39
7.3.190.0000.02116.64
7.3.180.0170.00016.56
7.3.170.0060.00916.52
7.3.160.0090.00616.63
7.3.120.0030.01214.98
7.3.10.0030.01016.24
7.3.00.0070.01016.57
7.2.330.0060.01116.70
7.2.320.0070.01016.56
7.2.310.0070.01116.92
7.2.300.0040.01216.52
7.2.290.0130.00516.88
7.2.130.0190.00416.52
7.2.120.0130.00716.42
7.2.110.0120.00916.29
7.2.100.0120.00816.56
7.2.90.0040.01516.41
7.2.80.0240.00316.30
7.2.70.0110.01116.50
7.2.60.0120.01016.68
7.2.50.0200.00916.55
7.2.40.0070.01716.68
7.2.30.0090.00916.70
7.2.20.0030.01716.60
7.2.10.0160.00316.45
7.2.00.0100.00618.10
7.1.250.0120.00915.79
7.1.200.0100.00315.89
7.1.100.0140.00618.29
7.1.70.0000.00817.41
7.1.60.0100.00017.08
7.1.50.0030.01717.09
7.1.00.0030.07722.42
7.0.200.0060.00916.75
7.0.140.0070.07021.93
7.0.60.0330.04719.82
7.0.50.0100.08017.84
7.0.40.0100.04020.07
7.0.30.0200.03720.02
7.0.20.0270.07020.03
7.0.10.0030.05720.32
7.0.00.0070.04020.04
5.6.210.0130.07320.74
5.6.200.0170.07318.19
5.6.190.0070.05020.27
5.6.180.0370.05720.41
5.6.170.0330.07020.40
5.6.160.0070.04320.32
5.6.150.0030.08318.17
5.6.140.0030.08318.18
5.6.130.0000.09018.22
5.6.120.0030.06321.01
5.6.110.0030.09021.02
5.6.100.0030.08721.00
5.6.90.0100.04720.93
5.6.80.0000.04020.40
5.5.350.0130.04020.39
5.5.340.0030.04717.91
5.5.330.0070.06320.23
5.5.320.0270.07720.32
5.5.310.0330.08020.28
5.5.300.0000.08717.98
5.5.290.0070.08017.90
5.5.280.0000.05020.76
5.5.270.0030.06020.88
5.5.260.0000.06320.86
5.5.250.0000.04320.58
5.5.240.0270.03020.35
5.4.450.0300.07319.07
5.4.440.0230.06319.43
5.4.430.0270.05019.48
5.4.420.0230.08019.11
5.4.410.0200.03719.30
5.4.400.0100.04719.08
5.4.390.0330.04018.81
5.4.380.0270.04018.77
5.4.370.0200.03719.18
5.4.360.0230.06719.09
5.4.350.0200.07718.80
5.4.340.0200.06319.09
5.4.320.0230.07719.10
5.4.310.0330.06719.06
5.4.300.0330.03319.13
5.4.290.0070.04718.97
5.4.280.0230.04018.73
5.4.270.0270.03718.91
5.4.260.0170.04018.81
5.4.250.0230.04718.76
5.4.240.0100.05719.21
5.4.230.0130.04019.12
5.4.220.0230.03019.14
5.4.210.0170.03718.89
5.4.200.0200.03319.08
5.4.190.0200.03319.08
5.4.180.0130.08319.23
5.4.170.0200.03319.16
5.4.160.0170.03718.79
5.4.150.0170.03719.07
5.4.140.0200.04016.36
5.4.130.0200.03716.47
5.4.120.0200.03316.27
5.4.110.0270.02716.51
5.4.100.0170.03716.36
5.4.90.0230.05716.44
5.4.80.0170.03716.46
5.4.70.0170.04016.53
5.4.60.0170.03316.39
5.4.50.0130.03716.31
5.4.40.0170.03316.47
5.4.30.0170.03716.47
5.4.20.0130.03716.38
5.4.10.0070.04316.41
5.4.00.0170.03315.63
5.3.290.0130.04014.57
5.3.280.0170.04014.61
5.3.270.0270.02714.70
5.3.260.0170.04014.56
5.3.250.0230.05014.65
5.3.240.0130.04314.70
5.3.230.0230.03014.64
5.3.220.0170.03714.50
5.3.210.0130.04014.39
5.3.200.0100.04314.40
5.3.190.0300.03714.41
5.3.180.0130.03714.41
5.3.170.0130.04014.50
5.3.160.0230.04314.50
5.3.150.0200.03314.51
5.3.140.0170.03314.57
5.3.130.0170.04314.64
5.3.120.0200.03314.53
5.3.110.0200.03314.53
5.3.100.0300.03713.98
5.3.90.0200.03714.11
5.3.80.0300.03313.86
5.3.70.0170.04014.01
5.3.60.0230.04014.02
5.3.50.0100.04013.90
5.3.40.0130.04013.80
5.3.30.0200.03013.95
5.3.20.0270.04013.64
5.3.10.0230.07013.53
5.3.00.0170.05313.43
5.2.170.0230.04711.30
5.2.160.0230.04310.99
5.2.150.0230.06011.15
5.2.140.0200.03310.98
5.2.130.0200.06311.15
5.2.120.0130.04010.94
5.2.110.0130.03011.25
5.2.100.0270.05711.17
5.2.90.0200.04010.94
5.2.80.0200.05311.11
5.2.70.0200.03711.11
5.2.60.0200.03011.06
5.2.50.0230.02710.87
5.2.40.0130.03310.82
5.2.30.0200.02310.83
5.2.20.0130.02710.83
5.2.10.0230.04310.79
5.2.00.0130.03010.81
5.1.60.0170.0279.95
5.1.50.0100.0339.92
5.1.40.0170.0439.98
5.1.30.0170.05710.42
5.1.20.0130.02710.43
5.1.10.0130.02710.00
5.1.00.0130.03010.13
5.0.50.0070.0509.20
5.0.40.0070.0209.20
5.0.30.0100.0309.20
5.0.20.0130.0379.20
5.0.10.0130.0279.20
5.0.00.0030.0439.20
4.4.90.0030.0239.20
4.4.80.0070.0239.20
4.4.70.0100.0179.20
4.4.60.0070.0179.20
4.4.50.0100.0279.20
4.4.40.0070.0239.20
4.4.30.0070.0179.20
4.4.20.0070.0179.20
4.4.10.0100.0139.20
4.4.00.0130.0509.20
4.3.110.0100.0339.20
4.3.100.0100.0179.20
4.3.90.0100.0209.20
4.3.80.0070.0279.20
4.3.70.0070.0179.20
4.3.60.0100.0339.20
4.3.50.0130.0279.20
4.3.40.0100.0379.20
4.3.30.0070.0209.20
4.3.20.0070.0279.20
4.3.10.0030.0379.20
4.3.00.0070.0139.20

preferences:
38.73 ms | 401 KiB | 5 Q