3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cuttoff_time = "16:00"; date_default_timezone_set('Europe/London'); $datedelivery = new DateTime('NOW'); $store_ending_time = explode(":", $cuttoff_time); // what time on the day is cuttoff $datedelivery->setTime($store_ending_time[0], $store_ending_time[1]); print_r($datedelivery); //$datedelivery->modify('+1 weekday');

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.0150.00318.42
8.3.50.0090.00922.18
8.3.40.0040.01218.84
8.3.30.0080.00818.97
8.3.20.0080.00020.39
8.3.10.0080.00021.91
8.3.00.0060.00319.85
8.2.180.0070.00718.38
8.2.170.0110.00422.96
8.2.160.0110.00320.21
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0000.00819.31
8.2.120.0080.00026.35
8.2.110.0060.00320.52
8.2.100.0040.00717.91
8.2.90.0030.00519.17
8.2.80.0000.00817.97
8.2.70.0040.00417.62
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0030.00620.45
8.2.30.0030.00520.75
8.2.20.0030.00517.98
8.2.10.0000.00718.18
8.2.00.0040.00418.02
8.1.280.0180.00025.92
8.1.270.0040.00420.13
8.1.260.0050.00228.09
8.1.250.0080.00028.09
8.1.240.0070.00323.69
8.1.230.0060.00620.90
8.1.220.0000.00817.78
8.1.210.0070.00418.77
8.1.200.0080.00017.35
8.1.190.0090.00017.11
8.1.180.0030.00518.10
8.1.170.0040.00418.67
8.1.160.0000.00720.68
8.1.150.0000.00718.76
8.1.140.0080.00019.50
8.1.130.0030.00317.72
8.1.120.0030.00317.59
8.1.110.0000.00817.52
8.1.100.0070.00017.50
8.1.90.0030.00517.63
8.1.80.0030.00617.49
8.1.70.0030.00317.36
8.1.60.0090.00017.66
8.1.50.0060.00317.48
8.1.40.0020.00517.49
8.1.30.0050.00317.56
8.1.20.0000.00817.72
8.1.10.0040.00417.59
8.1.00.0000.00717.55
8.0.300.0040.00418.77
8.0.290.0030.00516.88
8.0.280.0030.00318.38
8.0.270.0030.00317.27
8.0.260.0030.00317.22
8.0.250.0030.00317.02
8.0.240.0000.00817.10
8.0.230.0000.00916.98
8.0.220.0000.00716.94
8.0.210.0000.00717.00
8.0.200.0000.00717.05
8.0.190.0030.00517.11
8.0.180.0030.00316.98
8.0.170.0000.00817.02
8.0.160.0000.00716.96
8.0.150.0030.00316.97
8.0.140.0070.00316.87
8.0.130.0060.00013.41
8.0.120.0070.00016.86
8.0.110.0050.00316.87
8.0.100.0070.00016.92
8.0.90.0000.00817.02
8.0.80.0040.01117.08
8.0.70.0080.00016.91
8.0.60.0050.00217.07
8.0.50.0030.00516.98
8.0.30.0150.00117.34
8.0.20.0080.01017.40
8.0.10.0050.00216.96
8.0.00.0110.00916.80
7.4.330.0050.00016.67
7.4.320.0000.00816.60
7.4.300.0000.00716.65
7.4.290.0050.00216.68
7.4.280.0040.00416.57
7.4.270.0030.00316.50
7.4.260.0030.00616.66
7.4.250.0080.00016.63
7.4.240.0050.00216.64
7.4.230.0070.00016.58
7.4.220.0040.02216.52
7.4.210.0080.00716.65
7.4.200.0000.00716.66
7.4.160.0060.00916.56
7.4.150.0120.00617.40
7.4.140.0100.01317.86
7.4.130.0150.00316.58
7.4.120.0030.01416.62
7.4.110.0070.01016.61
7.4.100.0040.01316.52
7.4.90.0150.00916.66
7.4.80.0120.01219.39
7.4.70.0060.00916.72
7.4.60.0130.00316.69
7.4.50.0040.01516.63
7.4.40.0070.01516.62
7.4.30.0070.01416.72
7.4.10.0100.01015.27
7.4.00.0040.01314.95
7.3.330.0000.00513.22
7.3.320.0050.00013.20
7.3.310.0030.00316.29
7.3.300.0080.00016.33
7.3.290.0070.01116.39
7.3.280.0100.00616.38
7.3.270.0110.00717.40
7.3.260.0060.01016.37
7.3.250.0140.00716.40
7.3.240.0140.00616.64
7.3.230.0130.00316.39
7.3.210.0150.00616.59
7.3.200.0030.01316.64
7.3.190.0170.00516.37
7.3.180.0100.00716.61
7.3.170.0110.00516.53
7.3.160.0070.01016.62
7.3.130.0060.00914.89
7.3.120.0060.00816.03
7.3.110.0060.00815.90
7.3.100.0060.00716.04
7.3.90.0070.00616.17
7.3.80.0060.00816.08
7.3.70.0040.00616.11
7.3.60.0070.00816.04
7.3.50.0020.00916.01
7.3.40.0050.00615.90
7.3.30.0000.01416.00
7.3.20.0030.00716.94
7.3.10.0080.00716.83
7.3.00.0080.00716.85
7.2.330.0070.01016.75
7.2.320.0120.01216.52
7.2.310.0120.00416.56
7.2.300.0070.01116.51
7.2.290.0100.00716.50
7.2.260.0030.01714.74
7.2.250.0090.00915.34
7.2.240.0060.00716.10
7.2.230.0050.01016.11
7.2.220.0060.00816.13
7.2.210.0030.01116.10
7.2.200.0020.01216.12
7.2.190.0000.01416.15
7.2.180.0030.00916.04
7.2.170.0060.00816.16
7.2.160.0060.00416.11
7.2.150.0060.00717.02
7.2.140.0050.00917.11
7.2.130.0050.00716.99
7.2.120.0060.00916.98
7.2.110.0040.00917.05
7.2.100.0050.00716.96
7.2.90.0040.00916.96
7.2.80.0050.01117.08
7.2.70.0100.00417.00
7.2.60.0070.00916.93
7.2.50.0060.00817.07
7.2.40.0120.00217.06
7.2.30.0030.01317.03
7.2.20.0120.00617.02
7.2.10.0080.00816.91
7.2.00.0080.00717.63
7.1.330.0030.00916.41
7.1.320.0030.01216.48
7.1.310.0050.00716.59
7.1.300.0070.00716.49
7.1.290.0060.00616.56
7.1.280.0080.00416.42
7.1.270.0040.00716.59
7.1.260.0090.00716.50
7.1.250.0070.00716.22
7.1.240.0060.00615.85
7.1.230.0040.00815.83
7.1.220.0000.01115.82
7.1.210.0060.00615.95
7.1.200.0060.00715.91
7.1.190.0030.01016.07
7.1.180.0040.00415.61
7.1.170.0000.01515.96
7.1.160.0110.00415.97
7.1.150.0030.00615.86
7.1.140.0000.01415.94
7.1.130.0000.01215.98
7.1.120.0040.01115.88
7.1.110.0040.00715.82
7.1.100.0090.00016.97
7.1.90.0030.00615.99
7.1.80.0000.01215.81
7.1.70.0020.01416.70
7.1.60.0050.01317.80
7.1.50.0140.00316.65
7.1.40.0070.00715.74
7.1.30.0000.01515.64
7.1.20.0040.00716.02
7.1.10.0090.00515.96
7.1.00.0070.03919.01
7.0.330.0160.00015.48
7.0.320.0040.01115.39
7.0.310.0040.00715.50
7.0.300.0080.00815.51
7.0.290.0060.01015.59
7.0.280.0100.00015.67
7.0.270.0000.01115.33
7.0.260.0040.00815.70
7.0.250.0000.00915.70
7.0.240.0030.00915.42
7.0.230.0060.01015.53
7.0.220.0060.00615.67
7.0.210.0040.00415.62
7.0.200.0060.00316.25
7.0.190.0070.00315.42
7.0.180.0060.00615.62
7.0.170.0060.00315.51
7.0.160.0000.01315.59
7.0.150.0030.01315.38
7.0.140.0060.00615.32
7.0.130.0000.00815.55
7.0.120.0090.00315.65
7.0.110.0030.00715.59
7.0.100.0030.00915.60
7.0.90.0030.00615.65
7.0.80.0040.00715.29
7.0.70.0030.01315.55
7.0.60.0080.04118.48
7.0.50.0050.02816.61
7.0.40.0080.04516.91
7.0.30.0190.04517.03
7.0.20.0230.04316.80
7.0.10.0060.05016.79
7.0.00.0050.04816.82
5.6.400.0040.00814.37
5.6.390.0080.00414.77
5.6.380.0000.00914.75
5.6.370.0070.00714.45
5.6.360.0040.01114.49
5.6.350.0000.01514.52
5.6.340.0130.00314.61
5.6.330.0060.00914.42
5.6.320.0040.00814.36
5.6.310.0000.00914.32
5.6.300.0070.00714.62
5.6.290.0040.00714.74
5.6.280.0040.04017.93
5.6.270.0090.00014.90
5.6.260.0000.00914.35
5.6.250.0060.00614.55
5.6.240.0030.00614.62
5.6.230.0030.00614.50
5.6.220.0030.00914.57
5.6.210.0110.03617.51
5.6.200.0070.04016.43
5.6.190.0080.04517.54
5.6.180.0120.04317.55
5.6.170.0180.03917.44
5.6.160.0040.03317.50
5.6.150.0060.02516.43
5.6.140.0040.03516.31
5.6.130.0070.04116.37
5.6.120.0080.02317.71
5.6.110.0080.04517.68
5.6.100.0110.04117.66
5.6.90.0080.03817.85
5.6.80.0030.04817.36
5.6.70.0000.01314.50
5.6.60.0060.00314.59
5.6.50.0110.00414.34
5.6.40.0030.01014.49
5.6.30.0030.01214.86
5.6.20.0000.01114.14
5.6.10.0030.01314.60
5.6.00.0070.01014.46
5.5.380.0030.00714.34
5.5.370.0060.00614.58
5.5.360.0070.00714.53
5.5.350.0090.03017.29
5.5.340.0020.02816.23
5.5.330.0080.02717.31
5.5.320.0170.02117.34
5.5.310.0130.02517.28
5.5.300.0030.04816.22
5.5.290.0070.04716.20
5.5.280.0130.03317.57
5.5.270.0070.04817.49
5.5.260.0060.02617.60
5.5.250.0030.02517.49
5.5.240.1810.01817.32
5.5.230.0040.01114.24
5.5.220.0000.01314.28
5.5.210.0040.00414.32
5.5.200.0030.00614.30
5.5.190.0030.00914.45
5.5.180.0100.00314.18
5.5.170.0040.00714.37
5.5.160.0090.00714.23
5.5.150.0060.01014.50
5.5.140.0030.01214.16
5.5.130.0030.01014.45
5.5.120.0030.00714.44
5.5.110.0040.01114.59
5.5.100.0000.01514.56
5.5.90.0060.00614.48
5.5.80.0110.00314.48
5.5.70.0100.00314.30
5.5.60.0030.00714.47
5.5.50.0070.00314.30
5.5.40.0070.00414.38
5.5.30.0030.01014.47
5.5.20.0000.00914.44
5.5.10.0070.00314.66
5.5.00.0070.00414.21

preferences:
45.2 ms | 401 KiB | 5 Q