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' => 'übermorgen'), 'date' => date("d.m.Y")); function checkWeekend($delivery) { $wochentage = array( 1=>"Montag", 2=>"Dienstag", 3=>"Mittwoch", 4=>"Donnerstag", 5=>"Freitag", 6=>"Samstag", 7=>"Sonntag"); $currentDay = (int) date('N'); $found = []; while(count($found) < 2) { $currentDay = $currentDay + 1; if(isset($delivery['exclude'][$currentDay])) { $found[] = $wochentage[$currentDay]; } } var_dump($found); } 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.70.0100.00616.75
8.3.60.0040.01516.75
8.3.50.0090.00717.56
8.3.40.0060.01218.79
8.3.30.0110.00418.92
8.3.20.0080.00023.53
8.3.10.0080.00021.95
8.3.00.0080.00018.34
8.2.180.0070.01116.50
8.2.170.0080.00822.96
8.2.160.0040.01121.15
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00420.57
8.2.120.0040.00426.35
8.2.110.0070.00320.94
8.2.100.0040.00717.84
8.2.90.0040.00417.88
8.2.80.0040.00418.78
8.2.70.0080.00017.75
8.2.60.0040.00418.03
8.2.50.0090.00018.10
8.2.40.0030.00620.59
8.2.30.0000.00821.07
8.2.20.0040.00418.18
8.2.10.0030.00518.07
8.2.00.0040.00418.11
8.1.280.0070.01325.92
8.1.270.0000.00823.75
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00622.25
8.1.230.0000.01122.63
8.1.220.0040.00417.78
8.1.210.0040.00418.93
8.1.200.0070.00317.48
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0050.00318.66
8.1.160.0000.00818.88
8.1.150.0030.00620.15
8.1.140.0070.00019.66
8.1.130.0030.00318.87
8.1.120.0000.00817.50
8.1.110.0000.00817.63
8.1.100.0070.00017.64
8.1.90.0030.00517.59
8.1.80.0000.00817.53
8.1.70.0030.00317.57
8.1.60.0040.00417.66
8.1.50.0040.00417.53
8.1.40.0080.00017.59
8.1.30.0030.00717.71
8.1.20.0070.00017.70
8.1.10.0040.00417.58
8.1.00.0000.00717.55
8.0.300.0070.00019.89
8.0.290.0070.00016.75
8.0.280.0030.00318.54
8.0.270.0040.00416.82
8.0.260.0070.00316.78
8.0.250.0000.00716.94
8.0.240.0080.00017.13
8.0.230.0020.00516.94
8.0.220.0050.00217.01
8.0.210.0000.00716.91
8.0.200.0000.00617.00
8.0.190.0080.00016.95
8.0.180.0070.00016.87
8.0.170.0050.00216.98
8.0.160.0070.00017.09
8.0.150.0090.00017.00
8.0.140.0000.00816.90
8.0.130.0000.00613.40
8.0.120.0080.00017.00
8.0.110.0050.00317.03
8.0.100.0000.00816.90
8.0.90.0000.00717.11
8.0.80.0060.01016.96
8.0.70.0070.00017.05
8.0.60.0000.00716.84
8.0.50.0040.00416.94
8.0.30.0100.00917.24
8.0.20.0090.01117.40
8.0.10.0080.00017.27
8.0.00.0140.01016.89
7.4.330.0000.00515.55
7.4.320.0060.00016.55
7.4.300.0030.00316.55
7.4.290.0040.00816.58
7.4.280.0000.00816.68
7.4.270.0080.00016.70
7.4.260.0070.00016.66
7.4.250.0030.00616.55
7.4.240.0050.00216.75
7.4.230.0040.00416.49
7.4.220.0140.00616.63
7.4.210.0090.00516.63
7.4.200.0030.00316.39
7.4.160.0140.00216.67
7.4.150.0110.00717.40
7.4.140.0130.00717.86
7.4.130.0150.01116.54
7.4.120.0040.01616.55
7.4.110.0030.01316.57
7.4.100.0120.00616.68
7.4.90.0170.00016.53
7.4.80.0100.00619.39
7.4.70.0030.01316.52
7.4.60.0060.01216.63
7.4.50.0040.01116.43
7.4.40.0060.01016.74
7.4.30.0100.01016.64
7.4.00.0000.01614.86
7.3.330.0020.00213.43
7.3.320.0000.00613.41
7.3.310.0000.00716.27
7.3.300.0070.00016.40
7.3.290.0030.01116.45
7.3.280.0090.01016.45
7.3.270.0070.01117.40
7.3.260.0100.00816.62
7.3.250.0120.00716.55
7.3.240.0070.01316.61
7.3.230.0070.01016.64
7.3.210.0000.02216.58
7.3.200.0160.00016.71
7.3.190.0060.01116.66
7.3.180.0150.00616.53
7.3.170.0060.01216.55
7.3.160.0140.00716.39
7.2.330.0110.00716.94
7.2.320.0070.01416.95
7.2.310.0190.00316.84
7.2.300.0090.00916.70
7.2.290.0150.00616.60
7.2.60.0000.00816.87
7.1.200.0060.00615.80
7.1.70.0030.00517.28
7.1.60.0170.01035.23
7.1.50.0130.01735.12
7.1.40.0200.01034.46
7.1.30.0200.01334.52
7.1.20.0170.01334.67
7.1.10.0070.00716.58
7.1.00.0030.01316.70
7.0.200.0070.00716.95
7.0.190.0070.00716.70
7.0.180.0100.00316.27
7.0.170.0000.01316.55
7.0.160.0100.00316.42
7.0.150.0030.01016.48
7.0.140.0030.01016.34
7.0.130.0130.00316.60
7.0.120.0070.00716.62
7.0.110.0070.00716.45
7.0.100.0030.01016.61
7.0.90.0070.00716.32
7.0.80.0000.01716.46
7.0.70.0100.00316.44
7.0.60.0030.01016.08
7.0.50.0070.00716.32
7.0.40.0000.01316.67
7.0.30.0030.01016.75
7.0.20.0070.00716.42
7.0.10.0030.01016.51
7.0.00.0030.01016.23

preferences:
54.13 ms | 401 KiB | 5 Q