3v4l.org

run code in 300+ PHP versions simultaneously
<?php $delivery = array( 'next' => 1, 'max' => 2, 'exclude' => array(6 => "Samstag", 7 => "Sonntag"), 'afterhour' => 14, 'message' => "Lieferung bis %tomorrow% (%tomorrow_date_full%) oder %dayaftertomorrow% (%dayaftertomorrow_date_full%)", 'translate' => array('tomorrow' => 'morgen', 'dayaftertomorrow' => 'ubermorgen'), 'date' => date("d.m.Y")); function checkWeekend($delivery) { $wochentage = array( 1=>"Montag", 2=>"Dienstag", 3=>"Mittwoch", 4=>"Donnerstag", 5=>"Freitag", 6=>"Samstag", 7=>"Sonntag"); $liefertage = array_diff($wochentage, $delivery['exclude']); $date = $delivery['date']; $currentDay = (int) date('N'); print_r($liefertage); } checkWeekend($delivery);

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.0160.00616.49
8.3.50.0140.00016.49
8.3.40.0100.00718.87
8.3.30.0110.00418.72
8.3.20.0030.00521.85
8.3.10.0030.00523.61
8.3.00.0000.00818.22
8.2.180.0040.01116.88
8.2.170.0100.00622.96
8.2.160.0100.00321.07
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.35
8.2.110.0050.00522.13
8.2.100.0040.00717.91
8.2.90.0030.00618.16
8.2.80.0040.00419.11
8.2.70.0040.00417.75
8.2.60.0040.00417.75
8.2.50.0050.00318.05
8.2.40.0050.00419.91
8.2.30.0050.00321.15
8.2.20.0000.00718.04
8.2.10.0000.00818.19
8.2.00.0000.00718.23
8.1.280.0120.00625.92
8.1.270.0080.00023.95
8.1.260.0090.00626.35
8.1.250.0000.00828.09
8.1.240.0060.00322.19
8.1.230.0040.00717.48
8.1.220.0050.00317.74
8.1.210.0030.00518.85
8.1.200.0040.00417.53
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00717.62
8.1.160.0000.00718.95
8.1.150.0030.00720.27
8.1.140.0070.00019.57
8.1.130.0000.00718.93
8.1.120.0030.00517.51
8.1.110.0050.00217.46
8.1.100.0040.00417.55
8.1.90.0000.00817.63
8.1.80.0020.00517.57
8.1.70.0030.00317.64
8.1.60.0040.00417.71
8.1.50.0050.00317.60
8.1.40.0080.00017.63
8.1.30.0070.00317.63
8.1.20.0000.00817.68
8.1.10.0000.00817.58
8.1.00.0080.00017.57
8.0.300.0000.00719.97
8.0.290.0050.00216.75
8.0.280.0050.00318.59
8.0.270.0030.00317.28
8.0.260.0000.00716.82
8.0.250.0000.00717.00
8.0.240.0080.00017.02
8.0.230.0000.00717.07
8.0.220.0030.00317.01
8.0.210.0070.00016.98
8.0.200.0000.00616.90
8.0.190.0000.00917.02
8.0.180.0050.00316.93
8.0.170.0000.00716.89
8.0.160.0030.00517.01
8.0.150.0060.00316.96
8.0.140.0040.00416.91
8.0.130.0030.00313.39
8.0.120.0070.00016.93
8.0.110.0060.00316.87
8.0.100.0040.00416.88
8.0.90.0040.00416.84
8.0.80.0060.01016.96
8.0.70.0000.00716.85
8.0.60.0000.00716.93
8.0.50.0070.00016.79
8.0.30.0100.00617.16
8.0.20.0070.01217.40
8.0.10.0040.00417.16
8.0.00.0070.01116.79
7.4.330.0000.00515.55
7.4.320.0060.00016.61
7.4.300.0070.00016.73
7.4.290.0000.00916.69
7.4.280.0060.00316.68
7.4.270.0070.00016.52
7.4.260.0000.00816.65
7.4.250.0000.00816.55
7.4.240.0080.00016.59
7.4.230.0030.00316.76
7.4.220.0030.01616.55
7.4.210.0030.01216.54
7.4.200.0040.00416.68
7.4.160.0060.01016.59
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0140.00516.48
7.4.120.0090.01316.68
7.4.110.0090.00916.73
7.4.100.0070.01016.68
7.4.90.0120.00616.64
7.4.80.0160.00619.39
7.4.70.0100.00516.64
7.4.60.0070.01016.60
7.4.50.0090.00616.70
7.4.40.0070.01016.62
7.4.30.0090.00916.48
7.4.10.0070.01115.26
7.4.00.0110.00514.97
7.3.330.0030.00313.24
7.3.320.0000.00613.36
7.3.310.0030.00316.38
7.3.300.0000.00616.36
7.3.290.0070.01016.33
7.3.280.0070.01016.28
7.3.270.0040.01417.40
7.3.260.0100.00716.42
7.3.250.0110.01016.58
7.3.240.0070.00916.52
7.3.230.0070.01316.51
7.3.210.0120.01616.59
7.3.200.0110.01016.58
7.3.190.0120.00616.58
7.3.180.0100.00716.57
7.3.170.0060.01516.61
7.3.160.0110.00516.64
7.3.130.0100.00315.06
7.3.120.0070.01114.68
7.3.110.0090.00615.05
7.3.100.0070.01114.99
7.3.90.0070.01014.67
7.3.80.0100.00315.02
7.3.70.0120.00315.09
7.3.60.0080.00014.74
7.3.50.0000.00914.87
7.3.40.0000.00814.90
7.3.30.0060.00314.79
7.3.20.0030.01016.52
7.3.10.0060.00816.82
7.3.00.0050.00816.51
7.2.330.0000.02016.97
7.2.320.0130.00416.47
7.2.310.0060.00916.89
7.2.300.0060.01617.03
7.2.290.0140.00316.59
7.2.260.0060.01215.06
7.2.250.0070.01115.23
7.2.240.0070.00715.35
7.2.230.0100.01015.44
7.2.220.0070.01115.19
7.2.210.0070.00715.44
7.2.200.0100.00715.04
7.2.190.0000.01715.23
7.2.180.0040.01114.99
7.2.170.0060.00915.21
7.2.160.0070.01114.71
7.2.150.0070.00716.89
7.2.140.0070.00317.11
7.2.130.0060.00916.96
7.2.120.0040.00817.04
7.2.110.0050.01017.07
7.2.100.0050.00817.10
7.2.90.0070.00716.85
7.2.80.0070.00617.21
7.2.70.0050.01017.20
7.2.60.0090.00517.12
7.2.50.0040.00916.85
7.2.40.0060.00917.14
7.2.30.0060.00717.19
7.2.20.0100.00317.02
7.2.10.0050.01317.12
7.2.00.0020.01216.97
7.1.330.0070.00415.71
7.1.320.0030.01315.98
7.1.310.0040.01116.08
7.1.300.0040.00415.89
7.1.290.0060.01015.61
7.1.280.0030.01315.74
7.1.270.0030.01015.94
7.1.260.0090.00315.82
7.1.250.0050.00916.01
7.1.240.0030.00615.93
7.1.230.0090.00616.06
7.1.220.0070.00715.77
7.1.210.0070.01015.70
7.1.200.0010.01015.83
7.1.190.0100.00315.86
7.1.180.0070.00416.03
7.1.170.0090.00615.60
7.1.160.0030.00915.89
7.1.150.0040.01115.93
7.1.140.0030.01016.05
7.1.130.0150.00615.69
7.1.120.0090.00015.91
7.1.110.0070.00715.95
7.1.100.0120.00315.63
7.1.90.0000.00815.96
7.1.80.0040.00415.82
7.1.70.0050.00516.47
7.1.60.1010.01124.45
7.1.50.0400.00824.69
7.1.40.0280.01424.25
7.1.30.0330.01324.41
7.1.20.0310.01424.42
7.1.10.0250.01015.46
7.1.00.0330.01515.63
7.0.330.0070.00415.46
7.0.320.0030.00615.19
7.0.310.0090.00615.36
7.0.300.0030.01115.36
7.0.290.0030.01015.48
7.0.280.0060.00615.35
7.0.270.0000.00815.59
7.0.260.0030.00915.61
7.0.250.0000.01415.39
7.0.240.0100.00015.54
7.0.230.0030.01015.64
7.0.220.0000.00815.61
7.0.210.0060.00315.57
7.0.200.0270.01115.18
7.0.190.0320.00815.18
7.0.180.0150.01415.03
7.0.170.0280.01115.05
7.0.160.0200.01114.96
7.0.150.0220.01014.97
7.0.140.0430.00815.06
7.0.130.0330.01114.98
7.0.120.0370.00814.88
7.0.110.0280.00815.06
7.0.100.0440.00914.87
7.0.90.0460.01015.00
7.0.80.0320.01214.88
7.0.70.0300.00715.02
7.0.60.0300.01214.88
7.0.50.0200.01315.10
7.0.40.0380.00914.12
7.0.30.0320.00914.00
7.0.20.0210.00814.06
7.0.10.0250.00713.92
7.0.00.0300.01114.02
5.6.400.0060.00314.24
5.6.390.0100.00714.31
5.6.380.0100.00014.51
5.6.370.0090.00614.39
5.6.360.0040.01114.55
5.6.350.0060.00314.36
5.6.340.0060.01214.49
5.6.330.0060.00614.56
5.6.320.0000.01214.55
5.6.310.0040.01114.30
5.6.300.0070.00714.66
5.6.290.0000.01214.10
5.6.280.0030.00914.52
5.6.270.0060.00314.76
5.6.260.0030.01014.48
5.6.250.0090.00614.50
5.6.240.0110.00414.32
5.6.230.0030.01014.35
5.6.220.0080.00814.74
5.6.210.0060.00314.27
5.6.200.0060.00614.43
5.6.190.0060.00614.57
5.6.180.0060.00614.29
5.6.170.0000.01014.30
5.6.160.0060.01214.44
5.6.150.0030.01014.24
5.6.140.0000.01114.93
5.6.130.0030.00614.67
5.6.120.0040.00814.53
5.6.110.0090.00914.40
5.6.100.0070.01114.66
5.6.90.0100.00714.30
5.6.80.0030.01714.17
5.6.70.0070.01014.14
5.6.60.0160.00314.09
5.6.50.0130.00314.31
5.6.40.0120.00614.27
5.6.30.0030.01314.41
5.6.20.0070.01014.68
5.6.10.0070.00314.49
5.6.00.0090.00014.53

preferences:
57.34 ms | 401 KiB | 5 Q