3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 1; $i < 10; $i++) { $today = strtotime("+$i days"); $quote_for = strtotime('wednesday this week',strtotime("+$i days")); $diff = floor(($quote_for - $today)/86400); // difference in days echo "On " . date('l \t\h\e jS',$today) . " the shipping quote will be for " . date('l \t\h\e jS', $quote_for) . " which is " . abs($diff) . " days " . ($diff <0?"before":"after") . " today. " . date('Y-m-d',$today) . " - " . date('Y-m-d',$quote_for) . "\n"; }

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.70.0130.00616.58
8.3.60.0130.00918.22
8.3.50.0080.01021.98
8.3.40.0120.00318.97
8.3.30.0150.00018.71
8.3.20.0080.00018.85
8.3.10.0040.00421.07
8.3.00.0050.00323.53
8.2.180.0090.01316.88
8.2.170.0060.00922.96
8.2.160.0070.01320.64
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0050.00319.79
8.2.110.0030.00620.64
8.2.100.0030.00917.97
8.2.90.0040.00419.33
8.2.80.0000.00918.05
8.2.70.0060.00318.00
8.2.60.0000.00818.29
8.2.50.0050.00318.07
8.2.40.0040.00418.47
8.2.30.0000.00719.63
8.2.20.0000.00817.89
8.2.10.0000.00818.18
8.2.00.0040.00718.07
8.1.280.0070.01425.92
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00022.67
8.1.230.0070.00421.03
8.1.220.0040.00418.77
8.1.210.0040.00418.96
8.1.200.0030.00617.48
8.1.190.0000.00817.66
8.1.180.0060.00318.10
8.1.170.0030.00618.90
8.1.160.0040.00419.15
8.1.150.0000.00818.97
8.1.140.0030.00517.80
8.1.130.0000.00718.07
8.1.120.0000.01117.79
8.1.110.0030.00617.76
8.1.100.0050.00317.73
8.1.90.0070.00017.67
8.1.80.0040.00417.82
8.1.70.0040.00417.78
8.1.60.0000.00817.92
8.1.50.0040.00417.75
8.1.40.0060.00317.73
8.1.30.0000.00817.79
8.1.20.0030.00517.86
8.1.10.0040.00417.77
8.1.00.0050.00317.84
8.0.300.0000.00720.02
8.0.290.0040.00417.30
8.0.280.0000.00718.65
8.0.270.0000.00717.45
8.0.260.0000.00717.09
8.0.250.0040.00417.19
8.0.240.0040.00417.20
8.0.230.0000.00717.18
8.0.220.0000.00717.23
8.0.210.0000.00717.26
8.0.200.0000.00617.19
8.0.190.0000.00817.29
8.0.180.0000.00817.25
8.0.170.0000.00917.26
8.0.160.0030.00517.22
8.0.150.0040.00417.21
8.0.140.0050.00217.17
8.0.130.0060.00013.62
8.0.120.0040.00417.14
8.0.110.0050.00217.21
8.0.100.0040.00417.22
8.0.90.0050.00217.34
8.0.80.0040.01117.17
8.0.70.0050.00317.16
8.0.60.0030.00517.13
8.0.50.0070.00017.26
8.0.30.0120.01017.41
8.0.20.0100.01217.46
8.0.10.0000.00717.23
8.0.00.0080.01316.94
7.4.330.0000.00515.09
7.4.320.0030.00316.69
7.4.300.0030.00316.78
7.4.290.0050.00316.78
7.4.280.0000.00816.81
7.4.270.0060.00316.86
7.4.260.0030.00313.47
7.4.250.0030.00616.86
7.4.240.0080.00016.80
7.4.230.0000.00816.74
7.4.220.0070.01116.66
7.4.210.0090.00716.83
7.4.200.0000.00716.79
7.4.190.0050.00316.90
7.4.160.0100.01316.67
7.4.150.0040.01717.40
7.4.140.0110.00817.86
7.4.130.0100.00816.71
7.4.120.0100.00816.92
7.4.110.0000.01916.65
7.4.100.0100.00816.84
7.4.90.0120.01616.61
7.4.80.0080.00819.39
7.4.70.0090.00916.80
7.4.60.0090.00916.87
7.4.50.0030.00616.98
7.4.40.0090.00622.52
7.4.30.0080.00816.93
7.4.00.0050.00815.13
7.3.330.0030.00313.57
7.3.320.0000.00513.43
7.3.310.0030.00316.68
7.3.300.0040.00416.64
7.3.290.0100.00716.65
7.3.280.0100.00716.64
7.3.270.0100.00717.40
7.3.260.0100.00718.24
7.3.250.0060.01316.75
7.3.240.0080.00816.68
7.3.230.0070.01016.74
7.3.210.0130.00316.58
7.3.200.0150.00419.39
7.3.190.0070.01416.87
7.3.180.0100.00616.58
7.3.170.0090.01216.71
7.3.160.0110.00616.65
7.3.120.0100.00715.06
7.3.10.0040.00816.92
7.3.00.0120.00016.77
7.2.330.0070.01117.09
7.2.320.0090.00917.10
7.2.310.0140.00517.13
7.2.300.0060.01317.07
7.2.290.0070.01016.96
7.2.130.0030.00917.27
7.2.120.0060.00617.07
7.2.110.0060.00617.09
7.2.100.0080.00416.98
7.2.90.0070.00716.97
7.2.80.0030.01016.96
7.2.70.0040.00816.84
7.2.60.0050.00617.24
7.2.50.0040.00816.91
7.2.40.0060.00317.20
7.2.30.0060.00617.21
7.2.20.0140.00316.94
7.2.10.0100.00317.16
7.2.00.0060.00617.20
7.1.250.0080.00415.83
7.1.200.0040.00416.15
7.1.70.0040.00717.49
7.1.60.0110.01119.40
7.1.50.0030.02117.36
7.1.00.0000.08022.28
7.0.200.0060.00316.73
7.0.140.0000.07321.95
7.0.100.0170.08719.93
7.0.90.0130.08019.92
7.0.80.0100.08319.89
7.0.70.0100.08719.91
7.0.60.0230.07319.88
7.0.50.0170.07720.29
7.0.40.0100.08020.13
7.0.30.0070.07320.08
7.0.20.0230.07020.10
7.0.10.0070.03719.95
7.0.00.0030.04320.04
5.6.280.0070.07320.89
5.6.250.0030.05020.59
5.6.240.0100.07720.65
5.6.230.0070.07020.59
5.6.220.0130.07720.56
5.6.210.0100.07720.77
5.6.200.0200.06020.95
5.6.190.0030.05021.06
5.6.180.0000.07721.03
5.6.170.0070.08021.16
5.6.160.0130.07721.11
5.6.150.0100.06021.11
5.6.140.0070.07021.01
5.6.130.0100.03721.02
5.6.120.0070.07321.13
5.6.110.0070.07321.02
5.6.100.0100.04321.15
5.6.90.0030.07321.04
5.6.80.0070.08020.37
5.6.70.0130.07020.50
5.6.60.0130.07020.32
5.6.50.0030.05320.49
5.6.40.0070.04720.40
5.6.30.0130.06720.44
5.6.20.0100.04020.39
5.6.10.0030.06320.36
5.6.00.0070.04020.38
5.5.380.0070.04020.39
5.5.370.0100.03320.45
5.5.360.0000.07720.33
5.5.350.0070.04020.38
5.5.340.0070.03720.86
5.5.330.0100.03320.92
5.5.320.0030.09020.91
5.5.310.0030.08720.88
5.5.300.0070.08020.88
5.5.290.0070.08020.90
5.5.280.0070.05020.87
5.5.270.0100.04320.88
5.5.260.0100.04020.86
5.5.250.0100.03720.67
5.5.240.0170.07020.27
5.5.230.0000.08720.28
5.5.220.0100.06020.24
5.5.210.0100.05320.16
5.5.200.0070.04020.07
5.5.190.0070.04319.98
5.5.180.0070.06320.20
5.5.160.0070.04020.24
5.5.150.0030.07720.11
5.5.140.0130.06720.27
5.5.130.0000.06320.19
5.5.120.0130.06720.24
5.5.110.0070.08320.25
5.5.100.0100.07720.07
5.5.90.0100.03320.12
5.5.80.0070.05720.06
5.5.70.0130.07320.02
5.5.60.0030.05720.10
5.5.50.0070.07320.11
5.5.40.0100.07720.02
5.5.30.0130.07020.07
5.5.20.0070.08020.07
5.5.10.0100.07320.05
5.5.00.0100.05020.04
5.4.450.0100.07319.36
5.4.440.0070.03319.44
5.4.430.0100.07719.48
5.4.420.0070.08019.30
5.4.410.0100.07019.22
5.4.400.0130.04019.04
5.4.390.0070.08019.07
5.4.380.0100.04719.09
5.4.370.0130.07018.94
5.4.360.0100.06019.10
5.4.350.0030.07719.23
5.4.340.0130.05019.05
5.4.320.0000.04719.14
5.4.310.0070.06718.90
5.4.300.0130.03019.09
5.4.290.0030.04719.14
5.4.280.0070.07719.08
5.4.270.0000.08318.81
5.4.260.0100.07019.11
5.4.250.0200.06319.13
5.4.240.0130.03019.04
5.4.230.0100.07719.09
5.4.220.0030.04019.05
5.4.210.0100.07319.02
5.4.200.0100.06719.05
5.4.190.0100.03719.21
5.4.180.0100.05718.99
5.4.170.0130.06718.95
5.4.160.0130.07318.79
5.4.150.0030.05319.09
5.4.140.0100.04316.34
5.4.130.0100.04716.43
5.4.120.0070.03316.43
5.4.110.0170.07016.39
5.4.100.0100.07016.41
5.4.90.0070.04316.31
5.4.80.0070.06716.31
5.4.70.0070.06716.25
5.4.60.0070.05716.30
5.4.50.0030.04316.20
5.4.40.0000.07316.44
5.4.30.0130.03316.32
5.4.20.0070.03316.31
5.4.10.0130.06016.18
5.4.00.0070.04315.56
5.3.290.0200.06314.66
5.3.280.0070.07014.53
5.3.270.0100.07314.46
5.3.260.0030.08014.55
5.3.250.0070.07014.55
5.3.240.0200.06714.59
5.3.230.0070.04314.46
5.3.220.0030.03714.53
5.3.210.0030.07314.39
5.3.200.0070.05314.56
5.3.190.0070.07714.43
5.3.180.0070.04014.40
5.3.170.0070.06714.47
5.3.160.0030.04714.43
5.3.150.0070.05314.43
5.3.140.0130.07714.56
5.3.130.0030.06714.54
5.3.120.0030.04014.54
5.3.110.0070.06714.50
5.3.100.0130.06314.02
5.3.90.0070.07313.99
5.3.80.0070.04313.96
5.3.70.0070.06713.92
5.3.60.0070.06013.97
5.3.50.0000.07313.93
5.3.40.0000.04013.94
5.3.30.0100.07013.77
5.3.20.0130.05713.63
5.3.10.0100.04713.61
5.3.00.0000.04013.63
5.2.170.0030.05011.30
5.2.160.0100.04011.30
5.2.150.0030.06311.30
5.2.140.0070.04011.30
5.2.130.0070.06011.30
5.2.120.0030.04011.30
5.2.110.0100.03311.30
5.2.100.0070.05711.30
5.2.90.0070.06011.30
5.2.80.0070.06011.30
5.2.70.0000.04711.30
5.2.60.0100.05711.30
5.2.50.0030.06011.32
5.2.40.0070.06011.37
5.2.30.0030.05011.39
5.2.20.0130.02311.39
5.2.10.0000.05311.39
5.2.00.0030.06011.39
5.1.60.0030.03711.39
5.1.50.0070.04711.39
5.1.40.0000.03011.39
5.1.30.0100.05011.39
5.1.20.0030.05711.39
5.1.10.0030.05311.39
5.1.00.0030.04311.39
5.0.50.0030.03311.39
5.0.40.0000.04011.39
5.0.30.0030.02711.39
5.0.20.0000.04711.39
5.0.10.0000.02011.39
5.0.00.0100.05711.39
4.4.90.0030.02311.30
4.4.80.0030.02711.31
4.4.70.0000.02011.39
4.4.60.0070.02711.39
4.4.50.0030.03311.39
4.4.40.0000.03711.39
4.4.30.0030.02311.39
4.4.20.0030.02711.39
4.4.10.0000.03311.39
4.4.00.0030.04311.39
4.3.110.0000.01711.39
4.3.100.0000.02011.39
4.3.90.0000.03311.39
4.3.80.0030.04311.39
4.3.70.0030.01311.39
4.3.60.0030.03311.39
4.3.50.0000.02311.39
4.3.40.0030.02311.39
4.3.30.0070.03311.39
4.3.20.0000.03011.39
4.3.10.0000.01311.39
4.3.00.0000.01711.39

preferences:
41.2 ms | 401 KiB | 5 Q