3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current = date('Y-m-d'); $nextBusinessDay = date('Y-m-d', strtotime($current . '+ 3 Weekday')); $interval = date_diff($current, $nextBusinessDay); $diff = $interval->format('%R%a days'); var_dump($interval, $diff);

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.1.70.0000.00817.58
8.1.60.0040.00417.59
8.1.50.0030.00617.63
8.1.40.0040.00417.70
8.1.30.0100.00017.83
8.1.20.0040.00417.88
8.1.10.0000.00817.77
8.1.00.0000.00817.78
8.0.200.0050.00217.15
8.0.190.0000.00817.16
8.0.180.0040.00417.25
8.0.170.0050.00317.26
8.0.160.0000.00817.32
8.0.150.0000.00717.18
8.0.140.0030.00517.16
8.0.130.0050.00013.54
8.0.120.0040.00417.16
8.0.110.0050.00217.18
8.0.100.0020.00517.08
8.0.90.0040.00417.02
8.0.80.0120.00917.30
8.0.70.0040.00416.99
8.0.60.0050.00317.15
8.0.50.0000.00717.18
8.0.30.0080.01017.32
8.0.20.0130.00817.40
8.0.10.0000.00817.08
8.0.00.0110.00716.88
7.4.300.0030.00316.80
7.4.290.0020.00516.70
7.4.280.0070.00016.57
7.4.270.0040.00416.79
7.4.260.0040.00416.77
7.4.250.0030.00616.75
7.4.240.0000.00716.78
7.4.230.0030.00316.59
7.4.220.0140.00616.75
7.4.210.0130.00016.75
7.4.200.0030.00516.90
7.4.160.0110.00416.86
7.4.150.0180.00017.40
7.4.140.0080.01217.86
7.4.130.0090.01616.71
7.4.120.0100.00816.85
7.4.110.0070.01016.75
7.4.100.0150.00616.83
7.4.90.0090.00916.69
7.4.80.0100.00719.39
7.4.70.0130.00716.84
7.4.60.0100.00716.69
7.4.50.0070.01016.81
7.4.40.0140.00516.78
7.4.30.0080.00816.92
7.4.00.0100.00715.19
7.3.330.0050.00013.43
7.3.320.0070.00013.41
7.3.310.0040.00316.58
7.3.300.0000.00816.50
7.3.290.0080.00816.49
7.3.280.0080.01116.56
7.3.270.0110.00617.40
7.3.260.0160.00316.66
7.3.240.0130.00616.66
7.3.230.0060.01116.78
7.3.210.0070.01116.65
7.3.200.0030.01416.55
7.3.190.0090.00616.47
7.3.180.0030.01416.70
7.3.170.0060.01216.81
7.3.160.0090.00616.51
7.3.120.0030.01614.85
7.3.110.0070.01114.98
7.3.100.0070.00715.08
7.3.90.0070.01114.74
7.3.80.0100.00015.19
7.3.70.0040.01515.05
7.3.60.0080.00614.82
7.3.50.0060.00915.08
7.3.40.0110.00414.91
7.3.30.0100.00315.14
7.3.20.0040.01116.77
7.3.10.0120.01016.61
7.3.00.0120.00816.56
7.2.330.0090.01516.64
7.2.320.0100.01416.73
7.2.310.0090.01316.90
7.2.300.0100.00716.87
7.2.290.0100.00716.99
7.2.250.0030.01315.29
7.2.240.0080.01115.15
7.2.230.0030.01015.16
7.2.220.0030.00815.02
7.2.210.0060.01014.91
7.2.200.0000.01914.88
7.2.190.0000.01215.12
7.2.180.0060.00915.17
7.2.170.0110.00715.14
7.2.130.0200.00816.41
7.2.120.0120.01216.79
7.2.110.0170.00616.86
7.2.100.0140.00516.25
7.2.90.0120.01216.36
7.2.80.0160.00316.60
7.2.70.0120.00816.72
7.2.60.0160.00316.58
7.2.50.0170.00716.47
7.2.40.0180.01117.24
7.2.30.0040.01716.71
7.2.20.0160.00416.21
7.2.10.0090.00916.45
7.2.00.0090.00617.13
7.1.330.0070.01016.01
7.1.320.0000.00816.19
7.1.310.0130.00715.83
7.1.300.0000.01316.09
7.1.290.0100.00316.05
7.1.280.0070.01015.58
7.1.270.0060.00615.95
7.1.260.0060.00616.05
7.1.250.0130.00715.86
7.1.200.0040.00815.67
7.1.100.0000.01217.95
7.1.70.0040.01117.11
7.1.60.0130.01019.61
7.1.50.0040.00817.29
7.1.00.0030.09022.57
7.0.200.0060.00617.05
7.0.100.0130.04319.91
7.0.90.0100.04020.02
7.0.80.0200.04019.95
7.0.70.0070.04719.85
7.0.60.0030.04319.78
7.0.50.0030.04320.36
7.0.40.0070.04020.08
7.0.30.0070.08320.17
7.0.20.0070.04720.05
7.0.10.0070.04020.07
7.0.00.0000.04020.14
5.6.280.0100.06720.81
5.6.250.0030.04320.72
5.6.240.0030.05020.69
5.6.230.0070.04020.71
5.6.220.0130.04720.60
5.6.210.0100.03720.49
5.6.200.0100.03321.17
5.6.190.0100.03721.16
5.6.180.0030.03720.93
5.6.170.0100.03721.02
5.6.160.0030.04321.06
5.6.150.0070.03721.17
5.6.140.0030.04321.07
5.6.130.0030.04321.01
5.6.120.0030.04321.10
5.6.110.0030.04321.06
5.6.100.0030.05020.97
5.6.90.0030.04321.05
5.6.80.0070.04320.42
5.6.70.0130.07720.39
5.6.60.0000.05020.41
5.6.50.0030.04720.34
5.6.40.0130.04020.44
5.6.30.0000.05020.43
5.6.20.0100.05720.44
5.6.10.0070.04320.38
5.6.00.0070.07020.39
5.5.380.0070.04020.50
5.5.370.0070.04720.36
5.5.360.0030.04320.48
5.5.350.0000.04020.42
5.5.340.0030.04320.61
5.5.330.0070.04020.83
5.5.320.0030.04720.79
5.5.310.0100.03020.93
5.5.300.0070.03720.82
5.5.290.0100.04320.91
5.5.280.0070.04020.80
5.5.270.0030.06720.76
5.5.260.0030.04320.90
5.5.250.0100.03020.73
5.5.240.0130.07720.30
5.5.230.0030.08320.25
5.5.220.0030.08320.16
5.5.210.0100.09020.01
5.5.200.0070.05720.14
5.5.190.0000.05020.14
5.5.180.0030.04320.21
5.5.160.0030.08720.08
5.5.150.0100.07320.12
5.5.140.0100.06720.26
5.5.130.0000.06720.23
5.5.120.0070.08020.24
5.5.110.0130.07320.27
5.5.100.0130.07320.15
5.5.90.0130.07020.00
5.5.80.0200.06720.00
5.5.70.0130.07020.03
5.5.60.0170.06020.10
5.5.50.0070.07320.08
5.5.40.0070.06320.05
5.5.30.0000.08320.14
5.5.20.0130.07019.98
5.5.10.0070.06719.97
5.5.00.0170.08319.96

preferences:
11.02 ms | 406 KiB | 5 Q