3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTimeStamp = strtotime("1971/01/01"); $endTimeStamp = date("Y/m/d"); $timeDiff = abs($endTimeStamp - $startTimeStamp); $numberDays = $timeDiff/86400; // 86400 seconds in one day // and you might want to convert to integer echo $numberDays = intval($numberDays); ?>

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.40.0100.01019.02
8.3.30.0070.00719.23
8.3.20.0050.00320.31
8.3.10.0070.00023.66
8.3.00.0040.00419.25
8.2.170.0140.00322.96
8.2.160.0110.01120.52
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0020.00522.10
8.2.110.0000.00922.16
8.2.100.0180.00317.45
8.2.90.0000.00819.34
8.2.80.0040.00417.97
8.2.70.0040.00417.87
8.2.60.0040.00418.05
8.2.50.0100.00018.07
8.2.40.0040.00420.01
8.2.30.0020.00518.07
8.2.20.0050.00317.91
8.2.10.0040.00418.19
8.2.00.0000.00717.81
8.1.270.0030.00523.83
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.20
8.1.230.0030.00819.17
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0000.00817.50
8.1.190.0000.00917.35
8.1.180.0070.00319.26
8.1.170.0040.00418.62
8.1.160.0080.00021.86
8.1.150.0000.00718.77
8.1.140.0000.00717.57
8.1.130.0080.00017.85
8.1.120.0030.00317.58
8.1.110.0080.00317.59
8.1.100.0000.00817.47
8.1.90.0070.00017.64
8.1.80.0040.00417.59
8.1.70.0000.00817.48
8.1.60.0090.00017.59
8.1.50.0040.00417.68
8.1.40.0030.00617.53
8.1.30.0090.00017.55
8.1.20.0000.00817.61
8.1.10.0040.00417.63
8.1.00.0080.00017.53
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0030.00318.54
8.0.270.0000.00717.27
8.0.260.0070.00017.38
8.0.250.0000.00717.23
8.0.240.0060.00317.11
8.0.230.0040.00717.11
8.0.220.0040.00417.17
8.0.210.0030.00317.06
8.0.200.0030.00317.23
8.0.190.0000.00817.14
8.0.180.0040.00417.10
8.0.170.0040.00417.13
8.0.160.0030.00317.05
8.0.150.0000.00716.98
8.0.140.0070.00017.11
8.0.130.0050.00013.37
8.0.120.0060.00317.07
8.0.110.0050.00317.01
8.0.100.0070.00016.98
8.0.90.0000.00717.08
8.0.80.0070.00717.12
8.0.70.0050.00217.05
8.0.60.0090.00016.91
8.0.50.0000.00717.07
8.0.30.0090.01017.24
8.0.20.0100.00917.40
8.0.10.0040.00417.11
8.0.00.0090.00817.04
7.4.330.0020.00215.18
7.4.320.0060.00016.57
7.4.300.0000.00716.49
7.4.290.0070.00016.56
7.4.280.0000.00716.74
7.4.270.0070.00016.70
7.4.260.0050.00316.64
7.4.250.0070.00016.60
7.4.240.0040.00416.69
7.4.230.0040.00416.64
7.4.220.0150.00416.69
7.4.210.0080.00816.60
7.4.200.0000.00716.76
7.4.190.0030.00316.77
7.4.160.0060.00916.74
7.4.150.0120.00717.40
7.4.140.0120.00517.86
7.4.130.0100.00816.63
7.4.120.0100.00816.72
7.4.110.0130.00916.61
7.4.100.0030.01716.54
7.4.90.0120.00616.64
7.4.80.0140.01019.39
7.4.70.0060.01116.64
7.4.60.0030.01416.75
7.4.50.0090.00016.75
7.4.40.0100.00716.42
7.4.30.0040.01116.59
7.4.00.0140.00015.33
7.3.330.0060.00013.43
7.3.320.0030.00313.24
7.3.310.0070.00016.52
7.3.300.0070.00016.48
7.3.290.0110.00416.41
7.3.280.0120.00716.47
7.3.270.0090.00917.40
7.3.260.0030.01316.67
7.3.250.0080.01216.71
7.3.240.0130.01016.59
7.3.230.0120.00616.52
7.3.210.0100.00616.58
7.3.200.0130.00819.39
7.3.190.0170.00716.45
7.3.180.0030.01316.55
7.3.170.0110.00616.52
7.3.160.0110.00616.71
7.3.120.0080.00814.98
7.2.330.0100.00716.63
7.2.320.0090.00916.53
7.2.310.0090.01316.69
7.2.300.0090.00616.50
7.2.290.0140.00416.97
7.2.60.0100.00317.07
7.2.00.0030.00919.52
7.1.200.0090.00615.98
7.1.100.0090.00618.48
7.1.70.0000.01117.14
7.1.60.0060.01819.46
7.1.50.0180.01135.01
7.1.00.0000.08022.32
7.0.200.0000.00716.66
7.0.140.0070.07021.96
7.0.90.0100.08319.87
7.0.80.0030.05719.99
7.0.70.0000.07019.95
7.0.60.0100.04019.88
7.0.50.0130.03720.28
7.0.40.0100.07720.05
7.0.30.0100.07720.17
7.0.20.0030.06320.00
7.0.10.0100.08319.95
7.0.00.0100.07720.02
5.6.280.0070.07020.92
5.6.240.0170.04320.66
5.6.230.0030.04320.59
5.6.220.0070.08720.64
5.6.210.0130.07720.44
5.6.200.0070.05721.11
5.6.190.0100.08321.05
5.6.180.0130.07320.95
5.6.170.0130.04720.95
5.6.160.0030.08020.99
5.6.150.0030.06021.10
5.6.140.0070.09021.16
5.6.130.0130.05320.95
5.6.120.0070.04721.02
5.6.110.0030.08321.00
5.6.100.0100.07721.03
5.6.90.0170.06321.00
5.6.80.0070.07320.39
5.6.70.0130.07320.32
5.6.60.0100.07020.45
5.6.50.0070.04020.46
5.6.40.0100.07720.52
5.6.30.0070.05320.36
5.6.20.0070.08020.42
5.6.10.0200.06320.38
5.6.00.0100.04320.32
5.5.380.0130.07320.53
5.5.370.0070.07720.30
5.5.360.0070.08020.47
5.5.350.0100.05720.38
5.5.340.0030.05320.79
5.5.330.0130.08020.77
5.5.320.0070.09020.92
5.5.310.0100.06020.90
5.5.300.0270.05720.82
5.5.290.0070.08320.81
5.5.280.0170.07720.88
5.5.270.0100.08320.84
5.5.260.0030.05720.78
5.5.250.0000.07020.63
5.5.240.0130.05720.21
5.5.230.0130.07320.20
5.5.220.0030.05020.20
5.5.210.0070.05320.15
5.5.200.0030.04720.10
5.5.190.0000.04720.18
5.5.180.0130.07319.98
5.5.160.0170.06320.10
5.5.150.0100.05319.97
5.5.140.0000.07320.19
5.5.130.0030.06020.23
5.5.120.0070.05320.25
5.5.110.0100.07720.27
5.5.100.0070.04019.97
5.5.90.0070.07320.15
5.5.80.0070.04020.14
5.5.70.0100.07320.07
5.5.60.0070.07020.02
5.5.50.0070.08320.09
5.5.40.0030.08019.92
5.5.30.0200.03320.04
5.5.20.0100.07319.95
5.5.10.0030.04319.96
5.5.00.0230.06020.06
5.4.450.0000.08719.27
5.4.440.0070.08319.39
5.4.430.0030.07019.13
5.4.420.0030.04319.22
5.4.410.0030.08319.01
5.4.400.0130.06718.96
5.4.390.0030.07319.05
5.4.380.0100.06018.95
5.4.370.0130.06318.90
5.4.360.0030.05719.03
5.4.350.0230.06019.05
5.4.340.0070.06718.90
5.4.320.0030.07718.78
5.4.310.0130.03318.96
5.4.300.0070.07718.80
5.4.290.0130.06719.12
5.4.280.0130.07719.04
5.4.270.0000.04719.11
5.4.260.0100.04319.14
5.4.250.0130.07019.02
5.4.240.0100.05319.02
5.4.230.0170.07018.91
5.4.220.0070.08319.07
5.4.210.0170.06019.09
5.4.200.0070.04318.96
5.4.190.0000.08318.77
5.4.180.0030.03719.09
5.4.170.0070.06319.11
5.4.160.0130.07319.05
5.4.150.0170.07018.88
5.4.140.0070.07016.37
5.4.130.0130.06316.36
5.4.120.0170.06316.32
5.4.110.0070.06716.39
5.4.100.0030.05316.43
5.4.90.0130.04016.44
5.4.80.0000.04716.44
5.4.70.0030.04716.24
5.4.60.0030.08016.29
5.4.50.0030.05016.18
5.4.40.0100.06716.41
5.4.30.0100.07016.18
5.4.20.0000.08016.18
5.4.10.0030.07716.24
5.4.00.0070.07015.77
5.3.290.0070.05014.65
5.3.280.0100.07714.59
5.3.270.0100.06714.46
5.3.260.0100.07314.60
5.3.250.0030.08014.56
5.3.240.0070.07714.56
5.3.230.0030.07314.58
5.3.220.0070.06714.56
5.3.210.0070.07314.56
5.3.200.0030.07714.57
5.3.190.0070.07314.40
5.3.180.0070.04314.54
5.3.170.0070.08014.52
5.3.160.0130.05314.49
5.3.150.0130.07314.52
5.3.140.0100.07014.54
5.3.130.0030.07714.50
5.3.120.0030.05014.52
5.3.110.0200.06314.45
5.3.100.0100.07313.89
5.3.90.0070.04713.99
5.3.80.0000.08314.01
5.3.70.0100.07313.87
5.3.60.0130.07013.77
5.3.50.0030.07313.88
5.3.40.0000.06313.80
5.3.30.0070.07013.86
5.3.20.0130.06713.59
5.3.10.0000.06313.66
5.3.00.0170.06313.54
5.2.170.0030.07011.14
5.2.160.0170.05011.09
5.2.150.0100.07011.13
5.2.140.0000.06011.13
5.2.130.0000.06711.05
5.2.120.0100.05710.98
5.2.110.0200.04710.89
5.2.100.0070.05711.02
5.2.90.0030.06310.89
5.2.80.0100.03310.98
5.2.70.0030.05010.93
5.2.60.0030.05311.05
5.2.50.0100.05711.01
5.2.40.0170.05310.97
5.2.30.0030.06311.04
5.2.20.0030.06010.82
5.2.10.0100.05310.97
5.2.00.0030.06310.73
5.1.60.0030.05710.73
5.1.50.0000.04010.73
5.1.40.0070.05310.73
5.1.30.0070.05010.73
5.1.20.0000.04310.73
5.1.10.0000.03010.73
5.1.00.0100.04310.73
5.0.50.0070.04310.73
5.0.40.0100.02010.73
5.0.30.0000.06010.73
5.0.20.0100.02310.73
5.0.10.0000.03010.73
5.0.00.0000.04710.73
4.4.90.0000.03710.73
4.4.80.0130.02310.73
4.4.70.0000.03010.73
4.4.60.0000.03710.73
4.4.50.0030.03710.73
4.4.40.0030.05010.73
4.4.30.0030.03310.73
4.4.20.0030.03310.73
4.4.10.0030.03310.73
4.4.00.0070.04310.73
4.3.110.0000.02010.73
4.3.100.0030.03710.73
4.3.90.0070.03010.73
4.3.80.0030.05010.73
4.3.70.0030.03010.73
4.3.60.0030.03310.73
4.3.50.0030.03010.73
4.3.40.0000.05310.73
4.3.30.0070.03010.73
4.3.20.0000.02310.73
4.3.10.0030.02710.73
4.3.00.0000.04310.73

preferences:
43.89 ms | 400 KiB | 5 Q