3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 1; $i < 10; $i++) { $today = strtotime("+$i days"); $quote_for = strtotime('+1 Weekday',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.40.0150.00018.79
8.3.30.0070.00718.81
8.3.20.0040.00420.11
8.3.10.0040.00423.67
8.3.00.0070.00020.77
8.2.170.0120.00322.96
8.2.160.0040.01120.24
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00926.16
8.2.120.0000.00822.25
8.2.110.0060.00320.60
8.2.100.0070.00418.09
8.2.90.0040.00419.30
8.2.80.0050.00317.97
8.2.70.0000.00917.88
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0050.00318.41
8.2.30.0000.00818.20
8.2.20.0030.00617.92
8.2.10.0020.00518.01
8.2.00.0040.00417.91
8.1.270.0060.00323.82
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00324.00
8.1.230.0090.00317.94
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0030.00517.54
8.1.180.0000.00818.10
8.1.170.0050.00518.62
8.1.160.0000.00822.13
8.1.150.0040.00418.90
8.1.140.0030.00617.59
8.1.130.0050.00218.01
8.1.120.0000.00717.74
8.1.110.0000.00717.74
8.1.100.0040.00417.74
8.1.90.0040.00417.69
8.1.80.0030.00517.62
8.1.70.0000.00817.67
8.1.60.0040.00417.85
8.1.50.0040.00417.72
8.1.40.0030.00517.77
8.1.30.0000.00817.83
8.1.20.0000.00717.90
8.1.10.0030.00617.72
8.1.00.0000.00817.78
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0000.00718.61
8.0.270.0030.00317.40
8.0.260.0000.00617.05
8.0.250.0070.00017.11
8.0.240.0000.00717.22
8.0.230.0000.00817.14
8.0.220.0030.00317.17
8.0.210.0030.00517.21
8.0.200.0000.00617.11
8.0.190.0070.00417.17
8.0.180.0000.00817.08
8.0.170.0040.00417.20
8.0.160.0030.00517.23
8.0.150.0040.00417.16
8.0.140.0000.00717.12
8.0.130.0000.00613.51
8.0.120.0000.00817.12
8.0.110.0080.00017.06
8.0.100.0080.00017.18
8.0.90.0000.00717.20
8.0.80.0100.01017.15
8.0.70.0040.00417.29
8.0.60.0000.00817.18
8.0.50.0080.00017.19
8.0.30.0080.01117.34
8.0.20.0080.01117.49
8.0.10.0000.00717.23
8.0.00.0100.01016.98
7.4.330.0020.00215.22
7.4.320.0060.00016.73
7.4.300.0060.00316.76
7.4.290.0020.00516.86
7.4.280.0040.00416.86
7.4.270.0000.00716.69
7.4.260.0000.00716.76
7.4.250.0040.00416.79
7.4.240.0050.00216.77
7.4.230.0070.00016.91
7.4.220.0110.00616.77
7.4.210.0070.00816.87
7.4.200.0000.00816.88
7.4.190.0030.00316.61
7.4.160.0130.01016.98
7.4.150.0100.01417.40
7.4.140.0210.01117.86
7.4.130.0140.00316.76
7.4.120.0060.01216.83
7.4.110.0060.01116.57
7.4.100.0100.01316.72
7.4.90.0110.00716.79
7.4.80.0130.01019.39
7.4.70.0060.01216.78
7.4.60.0160.00516.64
7.4.50.0030.00316.88
7.4.40.0090.00622.77
7.4.30.0090.00616.90
7.4.10.0080.01115.11
7.4.00.0020.01215.31
7.3.330.0030.00313.35
7.3.320.0000.00613.52
7.3.310.0000.00716.41
7.3.300.0070.00016.62
7.3.290.0090.00416.65
7.3.280.0090.00616.62
7.3.270.0140.00317.40
7.3.260.0070.01016.78
7.3.250.0090.01016.78
7.3.240.0210.00316.83
7.3.230.0040.01216.64
7.3.210.0140.00316.68
7.3.200.0070.01019.39
7.3.190.0120.00916.58
7.3.180.0000.01616.78
7.3.170.0080.00816.62
7.3.160.0110.00516.58
7.3.130.0070.01115.18
7.3.120.0080.00915.22
7.3.110.0070.01214.94
7.3.100.0050.01015.06
7.3.90.0080.00815.12
7.3.80.0070.00514.95
7.3.70.0060.00814.87
7.3.60.0070.00615.04
7.3.50.0050.00815.11
7.3.40.0070.01015.17
7.3.30.0070.00515.04
7.3.20.0100.00416.86
7.3.10.0070.00916.69
7.3.00.0030.01016.90
7.2.330.0090.01017.03
7.2.320.0130.00616.78
7.2.310.0140.00417.13
7.2.300.0100.00716.77
7.2.290.0070.01016.87
7.2.260.0060.01315.23
7.2.250.0090.01115.14
7.2.240.0030.01315.24
7.2.230.0050.00915.10
7.2.220.0080.00815.38
7.2.210.0020.00815.06
7.2.200.0100.00615.13
7.2.190.0050.00915.21
7.2.180.0070.00915.04
7.2.170.0030.01015.32
7.2.160.0100.00315.00
7.2.150.0000.01817.14
7.2.140.0040.00817.13
7.2.130.0090.00617.17
7.2.120.0030.00717.10
7.2.110.0030.01216.84
7.2.100.0090.00417.15
7.2.90.0090.00317.16
7.2.80.0030.01217.20
7.2.70.0080.00617.06
7.2.60.0060.01017.08
7.2.50.0070.01117.17
7.2.40.0000.00917.34
7.2.30.0070.00716.88
7.2.20.0000.01317.18
7.2.10.0080.00417.13
7.2.00.0050.00918.18
7.1.330.0090.00516.12
7.1.320.0060.00916.01
7.1.310.0040.01015.90
7.1.300.0100.00415.92
7.1.290.0050.00716.03
7.1.280.0030.00615.92
7.1.270.0030.00816.06
7.1.260.0050.00715.86
7.1.250.0130.00015.92
7.1.240.0040.00415.99
7.1.230.0100.00715.99
7.1.220.0000.00915.76
7.1.210.0000.01415.87
7.1.200.0030.01015.82
7.1.190.0000.00915.79
7.1.180.0050.00516.13
7.1.170.0170.00016.01
7.1.160.0000.01016.11
7.1.150.0050.00515.67
7.1.140.0070.00316.07
7.1.130.0100.00316.15
7.1.120.0090.00615.89
7.1.110.0030.01016.07
7.1.100.0150.00815.14
7.1.90.0070.00716.08
7.1.80.0090.00916.08
7.1.70.0030.01016.70
7.1.60.0050.01717.58
7.1.50.0090.00916.66
7.1.40.0130.00316.01
7.1.30.0070.00716.05
7.1.20.0060.01016.07
7.1.10.0070.00715.89
7.1.00.0040.04419.13
7.0.330.0050.00315.47
7.0.320.0060.00615.57
7.0.310.0000.01015.34
7.0.300.0040.00815.46
7.0.290.0080.00315.35
7.0.280.0040.00715.70
7.0.270.0050.00515.35
7.0.260.0030.00915.20
7.0.250.0030.00915.72
7.0.240.0040.00915.43
7.0.230.0070.00715.61
7.0.220.0070.01015.55
7.0.210.0030.01415.31
7.0.200.0000.00916.34
7.0.190.0030.01015.61
7.0.180.0100.00715.54
7.0.170.0060.00315.40
7.0.160.0000.01715.58
7.0.150.0030.01015.29
7.0.140.0040.04218.86
7.0.130.0070.00315.49
7.0.120.0030.00715.75
7.0.110.0070.00715.45
7.0.100.0280.02717.78
7.0.90.0230.04917.69
7.0.80.0150.03417.62
7.0.70.0300.03817.68
7.0.60.0180.04517.67
7.0.50.0230.03117.97
7.0.40.0080.03016.73
7.0.30.0130.03716.86
7.0.20.0020.03616.83
7.0.10.0060.02416.71
7.0.00.0080.03716.78
5.6.400.0040.00414.46
5.6.390.0090.00014.27
5.6.380.0040.00414.27
5.6.370.0060.00614.41
5.6.360.0030.00814.33
5.6.350.0060.00914.43
5.6.340.0040.00814.40
5.6.330.0040.00814.59
5.6.320.0090.00014.63
5.6.310.0030.01414.39
5.6.300.0030.00614.58
5.6.290.0030.01314.66
5.6.280.0050.03817.73
5.6.270.0030.01014.33
5.6.260.0030.01214.49
5.6.250.0020.04417.58
5.6.240.0100.03417.55
5.6.230.0100.04017.49
5.6.220.0080.04117.46
5.6.210.0020.04517.46
5.6.200.0070.04317.72
5.6.190.0050.05217.73
5.6.180.0080.03817.76
5.6.170.0080.02817.63
5.6.160.0100.04217.71
5.6.150.0080.03617.70
5.6.140.0120.03317.73
5.6.130.0170.03617.77
5.6.120.0130.04017.61
5.6.110.0080.04517.69
5.6.100.0080.03717.78
5.6.90.0110.03217.57
5.6.80.0030.03717.41
5.6.70.0030.04517.46
5.6.60.0090.04417.38
5.6.50.0050.04517.33
5.6.40.0070.02817.39
5.6.30.0080.02617.37
5.6.20.0070.03117.50
5.6.10.0070.03117.36
5.6.00.0000.03317.28
5.5.380.0080.03617.46
5.5.370.0030.04717.34
5.5.360.0050.04117.37
5.5.350.0070.02317.39
5.5.340.0090.03717.54
5.5.330.0120.04017.40
5.5.320.0120.03817.60
5.5.310.0090.03017.45
5.5.300.0000.03917.59
5.5.290.0080.05017.50
5.5.280.0120.03717.62
5.5.270.0100.04317.63
5.5.260.0040.03017.46
5.5.250.0090.04017.44
5.5.240.0100.03717.14
5.5.230.0100.03217.34
5.5.220.0080.04517.20
5.5.210.0080.04417.16
5.5.200.0070.03917.23
5.5.190.0050.04617.19
5.5.180.0080.04417.22
5.5.170.0030.01014.36
5.5.160.0050.04517.29
5.5.150.0050.03917.18
5.5.140.0030.02817.26
5.5.130.0070.03917.15
5.5.120.0080.04217.25
5.5.110.0080.04617.23
5.5.100.0110.03317.06
5.5.90.0070.02017.29
5.5.80.0020.03917.09
5.5.70.0070.03017.18
5.5.60.0080.04516.99
5.5.50.0070.03317.15
5.5.40.0050.04816.93
5.5.30.0110.04217.16
5.5.20.0060.04317.10
5.5.10.0080.04517.14
5.5.00.0050.04217.15
5.4.450.0030.04315.27
5.4.440.0020.04715.36
5.4.430.0070.02315.36
5.4.420.0060.04115.29
5.4.410.0050.03515.30
5.4.400.0050.03515.14
5.4.390.0060.03815.12
5.4.380.0020.04015.22
5.4.370.0110.03115.04
5.4.360.0070.04115.15
5.4.350.0020.04615.16
5.4.340.0100.02815.06
5.4.330.0000.00911.38
5.4.320.0020.04615.20
5.4.310.0080.03815.16
5.4.300.0080.03515.09
5.4.290.0030.03115.09
5.4.280.0090.03915.14
5.4.270.0080.04215.16
5.4.260.0030.03615.17
5.4.250.0060.02415.12
5.4.240.0050.04115.17
5.4.230.0040.03015.09
5.4.220.0030.04415.21
5.4.210.0080.03615.15
5.4.200.0070.03615.25
5.4.190.0050.03215.16
5.4.180.0030.03715.21
5.4.170.0000.02715.16
5.4.160.0110.02815.15
5.4.150.0080.03815.20
5.4.140.0040.03213.83
5.4.130.0070.02813.81
5.4.120.0060.03613.83
5.4.110.0050.03213.78
5.4.100.0050.04213.82
5.4.90.0050.02213.85
5.4.80.0050.04013.82
5.4.70.0110.03513.88
5.4.60.0080.03813.73
5.4.50.0050.04013.78
5.4.40.0050.04113.83
5.4.30.0050.04013.73
5.4.20.0020.04013.74
5.4.10.0030.02513.81
5.4.00.0050.03813.40
5.3.290.0050.03612.96
5.3.280.0080.04012.87
5.3.270.0060.04512.94
5.3.260.0040.02612.94
5.3.250.0080.03312.94
5.3.240.0050.04012.86
5.3.230.0030.04712.93
5.3.220.0080.03712.91
5.3.210.0030.04312.90
5.3.200.0070.02212.92
5.3.190.0000.04712.92
5.3.180.0070.04012.85
5.3.170.0050.03112.83
5.3.160.0130.02212.92
5.3.150.0020.03912.90
5.3.140.0060.04012.83
5.3.130.0080.03412.89
5.3.120.0050.04112.83
5.3.110.0080.03812.90
5.3.100.0050.03712.66
5.3.90.0030.04012.64
5.3.80.0050.04512.58
5.3.70.0050.03912.64
5.3.60.0030.04212.62
5.3.50.0130.03612.61
5.3.40.0020.02712.57
5.3.30.0100.03312.52
5.3.20.0070.03912.48
5.3.10.0100.03612.35
5.3.00.0050.03212.46
5.2.170.0100.05011.13
5.2.160.0070.07011.10
5.2.150.0070.06310.96
5.2.140.0100.04011.13
5.2.130.0070.03711.09
5.2.120.0030.06311.06
5.2.110.0100.06310.92
5.2.100.0030.06710.89
5.2.90.0070.03310.90
5.2.80.0070.06311.15
5.2.70.0000.06711.17
5.2.60.0100.06011.09
5.2.50.0130.06010.98
5.2.40.0070.05311.01
5.2.30.0130.03710.79
5.2.20.0030.05310.89
5.2.10.0030.06310.86
5.2.00.0100.04710.77
5.1.60.0030.05710.66
5.1.50.0070.05010.66
5.1.40.0170.03710.66
5.1.30.0030.06010.66
5.1.20.0030.05710.66
5.1.10.0000.04010.66
5.1.00.0100.06010.66
5.0.50.0070.04010.66
5.0.40.0000.02310.66
5.0.30.0030.04010.66
5.0.20.0030.04710.66
5.0.10.0070.04010.66
5.0.00.0030.06310.66
4.4.90.0070.03010.66
4.4.80.0030.03710.66
4.4.70.0030.01710.66
4.4.60.0000.04010.66
4.4.50.0000.02310.66
4.4.40.0000.03710.66
4.4.30.0100.03010.66
4.4.20.0030.03710.66
4.4.10.0030.01710.66
4.4.00.0030.04710.66
4.3.110.0000.02010.66
4.3.100.0030.02010.66
4.3.90.0000.01710.66
4.3.80.0000.02710.66
4.3.70.0000.01710.66
4.3.60.0000.03310.66
4.3.50.0000.02310.66
4.3.40.0030.02710.66
4.3.30.0030.01310.66
4.3.20.0000.01710.66
4.3.10.0000.02010.66
4.3.00.0000.01710.66

preferences:
47.1 ms | 400 KiB | 5 Q