3v4l.org

run code in 300+ PHP versions simultaneously
<?php $SPW = array("1"=>"38", "2"=>"39", "3"=>"40", "4"=>"41", "5"=>"42", "6"=>"45", "7"=>"46", "8"=>"47", "9"=>"48", "10"=>"49", "11"=>"50", "12"=>"51", "13"=>"2", "14"=>"3", "15"=>"4", "16"=>"8", "17"=>"10", "18"=>"11", "19"=>"12", "20"=>"13", "21"=>"16", "22"=>"17"); $current_week_number = date('W'); $current_week_number = "12"; for($row=1; $row<23; $row++) { $r = strval($row); if($SPW[$r]==$current_week_number) { $key = array_search($current_week_number, $SPW); echo $current_week_number . " " . $key; } }

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.0120.00318.92
8.3.30.0070.00719.07
8.3.20.0040.00420.34
8.3.10.0080.00020.48
8.3.00.0030.00519.38
8.2.170.0070.00722.96
8.2.160.0070.00720.48
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00820.77
8.2.110.0080.00020.32
8.2.100.0000.01118.16
8.2.90.0040.00419.20
8.2.80.0050.00317.97
8.2.70.0000.00817.75
8.2.60.0040.00418.05
8.2.50.0030.00618.07
8.2.40.0000.00818.34
8.2.30.0000.00719.37
8.2.20.0000.00717.75
8.2.10.0040.00418.16
8.2.00.0040.00417.79
8.1.270.0040.00423.97
8.1.260.0100.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0090.00319.05
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0030.00617.47
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0040.00421.93
8.1.150.0040.00419.07
8.1.140.0000.00817.63
8.1.130.0030.00317.99
8.1.120.0070.00017.62
8.1.110.0040.00417.65
8.1.100.0040.00417.60
8.1.90.0050.00317.49
8.1.80.0040.00417.56
8.1.70.0000.00717.57
8.1.60.0040.00417.66
8.1.50.0030.00517.56
8.1.40.0000.00717.41
8.1.30.0000.00817.60
8.1.20.0000.00717.61
8.1.10.0040.00417.64
8.1.00.0070.00017.60
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0070.00018.48
8.0.270.0030.00317.25
8.0.260.0050.00317.32
8.0.250.0070.00017.02
8.0.240.0000.00616.97
8.0.230.0000.00817.08
8.0.220.0030.00316.96
8.0.210.0070.00017.10
8.0.200.0000.00717.00
8.0.190.0000.00717.09
8.0.180.0040.00417.02
8.0.170.0000.00716.97
8.0.160.0040.00417.00
8.0.150.0000.00716.95
8.0.140.0070.00016.95
8.0.130.0090.00013.39
8.0.120.0050.00317.09
8.0.110.0030.00516.95
8.0.100.0040.00317.10
8.0.90.0070.00016.91
8.0.80.0030.01216.96
8.0.70.0040.00416.93
8.0.60.0050.00216.89
8.0.50.0040.00416.96
8.0.30.0080.01017.19
8.0.20.0090.01217.40
8.0.10.0070.00017.06
8.0.00.0130.00616.86
7.4.330.0030.00315.09
7.4.320.0040.00416.70
7.4.300.0060.00016.69
7.4.290.0000.00716.69
7.4.280.0000.00816.61
7.4.270.0030.00516.54
7.4.260.0070.00016.46
7.4.250.0000.00816.70
7.4.240.0040.00416.64
7.4.230.0030.00316.71
7.4.220.0130.00616.67
7.4.210.0120.00316.74
7.4.200.0070.00016.46
7.4.160.0060.00916.69
7.4.150.0180.00717.40
7.4.140.0120.00617.86
7.4.130.0130.01016.68
7.4.120.0080.00816.56
7.4.110.0090.00916.59
7.4.100.0100.01416.56
7.4.90.0030.01316.79
7.4.80.0070.01519.39
7.4.70.0110.00716.55
7.4.60.0060.01116.45
7.4.50.0040.00416.47
7.4.40.0100.01016.57
7.4.30.0140.00316.80
7.4.00.0070.00614.97
7.3.330.0060.00013.13
7.3.320.0030.00313.07
7.3.310.0040.00416.30
7.3.300.0020.00516.24
7.3.290.0090.00616.30
7.3.280.0050.01116.29
7.3.270.0120.00617.40
7.3.260.0130.00316.54
7.3.250.0070.01216.55
7.3.240.0140.00716.35
7.3.230.0060.00916.58
7.3.210.0130.00316.70
7.3.200.0120.00419.39
7.3.190.0050.00316.58
7.3.180.0090.00616.43
7.3.170.0100.00716.42
7.3.160.0100.00716.45
7.3.10.0090.00616.59
7.3.00.0040.00816.61
7.2.330.0120.00616.88
7.2.320.0090.01116.65
7.2.310.0090.01016.90
7.2.300.0130.00416.86
7.2.290.0120.00616.96
7.2.130.0130.00017.11
7.2.120.0030.00917.13
7.2.110.0000.01116.90
7.2.100.0040.00817.02
7.2.90.0050.00317.12
7.2.80.0110.00416.96
7.2.70.0030.01317.16
7.2.60.0100.00316.88
7.2.50.0000.01117.17
7.2.40.0080.00317.09
7.2.30.0100.00317.07
7.2.20.0130.00317.09
7.2.10.0030.01017.00
7.2.00.0030.01016.89
7.1.250.0040.00816.04
7.1.100.0060.00618.19
7.1.70.0000.01117.20
7.1.60.0100.01619.61
7.1.50.0040.01517.16
7.1.00.0070.07022.37
7.0.200.0190.00915.25
7.0.140.0070.06321.95
7.0.100.0400.08020.02
7.0.90.0300.06019.94
7.0.80.0530.06319.92
7.0.70.0470.07020.00
7.0.60.0300.04319.91
7.0.50.0470.07720.32
7.0.40.0070.06020.09
7.0.30.0170.07720.06
7.0.20.0170.07320.16
7.0.10.0130.07720.10
7.0.00.0030.07020.07
5.6.280.0070.07020.77
5.6.250.0030.08720.57
5.6.240.0100.07720.60
5.6.230.0170.07020.63
5.6.220.0100.08020.66
5.6.210.0100.08020.75
5.6.200.0100.07720.99
5.6.190.0100.08021.03
5.6.180.0100.07721.03
5.6.170.0000.09021.11
5.6.160.0200.07021.00
5.6.150.0100.08321.01
5.6.140.0100.07721.10
5.6.130.0000.10021.04
5.6.120.0070.07021.11
5.6.110.0070.08321.07
5.6.100.0030.04320.98
5.6.90.0100.06021.05
5.6.80.0170.06320.48
5.6.70.0130.05320.46
5.6.60.0070.07720.44
5.6.50.0000.08020.49
5.6.40.0100.05020.38
5.6.30.0100.05720.29
5.6.20.0030.07320.44
5.6.10.0030.04020.38
5.6.00.0030.04720.36
5.5.380.0100.08020.35
5.5.370.0030.08320.35
5.5.360.0100.05320.48
5.5.350.0070.08720.42
5.5.340.0100.05720.77
5.5.330.0130.08020.79
5.5.320.0030.09020.82
5.5.310.0100.04320.90
5.5.300.0030.05720.93
5.5.290.0030.07020.87
5.5.280.0170.05320.77
5.5.270.0030.05320.89
5.5.260.0100.08720.91
5.5.250.0030.08720.70
5.5.240.0030.05320.21
5.5.230.0070.04020.26
5.5.220.0170.06720.16
5.5.210.0070.04720.02
5.5.200.0070.07720.08
5.5.190.0130.04020.14
5.5.180.0070.04320.28
5.5.160.0100.04320.21
5.5.150.0070.05320.06
5.5.140.0130.07320.24
5.5.130.0030.08320.07
5.5.120.0100.07320.17
5.5.110.0130.07320.23
5.5.100.0070.08019.95
5.5.90.0070.06020.13
5.5.80.0100.07020.17
5.5.70.0030.07720.16
5.5.60.0130.06719.96
5.5.50.0100.08020.03
5.5.40.0070.06020.00
5.5.30.0130.06720.10
5.5.20.0070.07720.02
5.5.10.0070.08019.97
5.5.00.0100.07320.08
5.4.450.0070.05719.36
5.4.440.0130.07319.14
5.4.430.0100.07019.37
5.4.420.0030.06719.47
5.4.410.0070.08019.14
5.4.400.0000.05719.16
5.4.390.0100.03719.12
5.4.380.0070.04719.05
5.4.370.0070.07718.96
5.4.360.0070.07718.98
5.4.350.0170.04018.90
5.4.340.0070.07719.12
5.4.320.0170.06719.07
5.4.310.0100.07318.81
5.4.300.0030.05318.91
5.4.290.0070.06719.07
5.4.280.0070.07319.04
5.4.270.0100.07019.13
5.4.260.0070.04719.07
5.4.250.0000.07718.96
5.4.240.0000.07719.11
5.4.230.0070.07719.05
5.4.220.0070.06018.77
5.4.210.0030.04718.80
5.4.200.0030.07719.12
5.4.190.0070.08018.89
5.4.180.0130.07319.02
5.4.170.0000.04718.77
5.4.160.0130.03319.12
5.4.150.0130.06318.79
5.4.140.0030.07316.32
5.4.130.0130.04716.42
5.4.120.0070.06316.18
5.4.110.0070.07716.50
5.4.100.0000.07316.47
5.4.90.0000.04316.48
5.4.80.0130.06716.42
5.4.70.0130.02716.34
5.4.60.0170.06716.20
5.4.50.0100.06716.31
5.4.40.0130.06316.45
5.4.30.0070.04716.18
5.4.20.0070.07016.17
5.4.10.0030.07716.31
5.4.00.0070.07015.80
5.3.290.0100.04014.68
5.3.280.0030.05714.45
5.3.270.0230.02714.46
5.3.260.0100.07014.59
5.3.250.0070.07314.59
5.3.240.0030.07714.47
5.3.230.0000.08314.55
5.3.220.0030.06014.43
5.3.210.0170.06714.43
5.3.200.0030.04314.51
5.3.190.0030.04314.54
5.3.180.0070.06714.52
5.3.170.0100.07014.53
5.3.160.0070.08014.51
5.3.150.0070.06714.55
5.3.140.0100.05014.55
5.3.130.0100.04014.40
5.3.120.0100.03314.54
5.3.110.0170.07314.50
5.3.100.0070.04714.02
5.3.90.0030.08314.02
5.3.80.0100.03713.77
5.3.70.0030.05013.97
5.3.60.0100.07014.00
5.3.50.0030.07313.93
5.3.40.0070.07013.81
5.3.30.0070.07713.90
5.3.20.0070.07013.45
5.3.10.0070.07313.63
5.3.00.0030.08013.63
5.2.170.0030.06710.98
5.2.160.0100.06011.19
5.2.150.0000.04010.99
5.2.140.0030.05311.06
5.2.130.0130.05310.89
5.2.120.0100.05311.17
5.2.110.0030.05710.96
5.2.100.0030.06310.89
5.2.90.0030.05711.08
5.2.80.0030.06710.93
5.2.70.0030.07010.91
5.2.60.0070.06011.03
5.2.50.0070.06010.89
5.2.40.0000.05710.99
5.2.30.0030.06311.00
5.2.20.0070.05710.82
5.2.10.0070.04710.92
5.2.00.0070.06010.68
5.1.60.0030.04010.68
5.1.50.0070.05010.68
5.1.40.0070.05310.68
5.1.30.0070.03710.68
5.1.20.0000.06010.68
5.1.10.0070.03310.68
5.1.00.0070.05310.68
5.0.50.0030.04710.68
5.0.40.0000.04710.68
5.0.30.0030.05310.68
5.0.20.0000.04710.68
5.0.10.0030.04710.68
5.0.00.0030.05010.68
4.4.90.0000.02310.68
4.4.80.0030.03010.68
4.4.70.0030.02310.68
4.4.60.0030.03710.68
4.4.50.0000.03710.68
4.4.40.0030.05010.68
4.4.30.0000.03310.68
4.4.20.0000.03710.68
4.4.10.0030.03710.68
4.4.00.0030.05710.68
4.3.110.0130.02710.68
4.3.100.0030.02310.68
4.3.90.0000.02310.68
4.3.80.0030.05710.68
4.3.70.0000.03710.68
4.3.60.0000.03710.68
4.3.50.0030.03010.68
4.3.40.0030.04710.68
4.3.30.0030.03310.68
4.3.20.0030.03710.68
4.3.10.0030.03710.68
4.3.00.0000.03710.68

preferences:
38.88 ms | 400 KiB | 5 Q