3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all_states = [ "Ontario" => null, "Manitoba" => null, "New Brunswick" => null, "Yukon" => null, "Saskatchewan" => null, "Prince Edward Island" => null, "Alberta" => null, "Quebec" => null, "Nova Scotia" => null, "British Columbia" => null, "Nunavut" => null, "Newfoundland and Labrador" => null, "Northwest Territories" => null ]; $country_states = [ "Alberta" => 17, "Cairo" => 1, "Calgary" => 1, "ddd" => 4, "gfdxf" => 1, "New Cairo" => 1, "Ontario" => 1, "secret" => 30 ]; var_export(array_replace(array_map('intval', $all_states), $country_states));

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.4.120.0130.00920.43
8.4.110.0100.00322.48
8.4.100.0090.00817.76
8.4.90.0080.00818.37
8.4.80.0100.00817.75
8.4.70.0120.00817.88
8.4.60.0100.00718.83
8.4.50.0100.01020.54
8.4.40.0070.01119.34
8.4.30.0030.00618.61
8.4.20.0130.00620.64
8.4.10.0080.00019.52
8.3.250.0100.00818.50
8.3.240.0090.00916.66
8.3.230.0100.00916.66
8.3.220.0040.00519.11
8.3.210.0100.01018.30
8.3.200.0120.00616.47
8.3.190.0090.01117.15
8.3.180.0140.00518.27
8.3.170.0180.00017.13
8.3.160.0090.00920.00
8.3.150.0060.00617.13
8.3.140.0000.01617.21
8.3.130.0000.00818.33
8.3.120.0130.00618.27
8.3.110.0040.00416.73
8.3.100.0040.00419.94
8.3.90.0070.01326.77
8.3.80.0060.00319.36
8.3.70.0070.01418.18
8.3.60.0100.01316.38
8.3.50.0100.01023.67
8.3.40.0030.01218.57
8.3.30.0140.00018.71
8.3.20.0040.00420.73
8.3.10.0030.00622.09
8.3.00.0060.00321.63
8.2.290.0110.00720.53
8.2.280.0110.00818.18
8.2.270.0150.00416.95
8.2.260.0000.01416.30
8.2.250.0040.00416.79
8.2.240.0070.00018.82
8.2.230.0040.00420.94
8.2.220.0080.00024.06
8.2.210.0080.01226.77
8.2.200.0100.00018.88
8.2.190.0120.00316.59
8.2.180.0180.00018.38
8.2.170.0120.00322.96
8.2.160.0120.00322.20
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0080.00727.44
8.2.120.0060.00319.83
8.2.110.0060.00322.20
8.2.100.0090.00317.78
8.2.90.0050.00317.58
8.2.80.0030.00519.16
8.2.70.0040.00417.50
8.2.60.0080.00017.50
8.2.50.0030.00617.93
8.2.40.0040.00419.35
8.2.30.0070.00019.20
8.2.20.0030.00517.98
8.2.10.0000.00719.16
8.2.00.0000.00819.31
8.1.330.0080.01122.15
8.1.320.0130.00615.95
8.1.310.0110.00318.13
8.1.300.0050.00517.89
8.1.290.0030.00630.84
8.1.280.0140.00425.92
8.1.270.0040.00423.92
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0060.00322.53
8.1.230.0110.00020.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.22
8.1.190.0030.00517.23
8.1.180.0070.00018.10
8.1.170.0050.00317.62
8.1.160.0050.00319.02
8.1.150.0000.00719.02
8.1.140.0040.00420.75
8.1.130.0050.00222.00
8.1.120.0070.00017.48
8.1.110.0000.00917.39
8.1.100.0050.00317.29
8.1.90.0040.00317.37
8.1.80.0030.00617.29
8.1.70.0000.00817.36
8.1.60.0030.00517.41
8.1.50.0000.00817.53
8.1.40.0040.00417.34
8.1.30.0040.00417.50
8.1.20.0000.00817.49
8.1.10.0000.00817.38
8.1.00.0050.00317.36
8.0.300.0000.00720.12
8.0.290.0060.00316.75
8.0.280.0040.00418.39
8.0.270.0000.00716.81
8.0.260.0040.00419.91
8.0.250.0050.00316.89
8.0.240.0000.00816.86
8.0.230.0040.00416.94
8.0.220.0070.00016.77
8.0.210.0030.00316.83
8.0.200.0030.00316.76
8.0.190.0000.00716.91
8.0.180.0040.00416.84
8.0.170.0000.00916.81
8.0.160.0040.00416.88
8.0.150.0000.00716.85
8.0.140.0040.00416.86
8.0.130.0050.00213.24
8.0.120.0040.00416.65
8.0.110.0070.00016.82
8.0.100.0000.00716.79
8.0.90.0030.00616.83
8.0.80.0060.01016.75
8.0.70.0070.00016.68
8.0.60.0040.00416.89
8.0.50.0000.00716.88
8.0.30.0080.01016.70
8.0.20.0160.00316.94
8.0.10.0050.00216.91
8.0.00.0080.00816.54
7.4.330.0000.00516.89
7.4.320.0060.00016.56
7.4.300.0070.00416.55
7.4.290.0030.00816.38
7.4.280.0040.00416.54
7.4.270.0000.00716.46
7.4.260.0030.00313.23
7.4.250.0040.00416.41
7.4.240.0020.00516.47
7.4.230.0030.00616.36
7.4.220.0040.00316.50
7.4.210.0070.01316.54
7.4.200.0070.00016.20
7.4.130.0060.01216.36
7.4.120.0060.00916.53
7.4.110.0060.01216.46
7.4.100.0090.00916.19
7.4.90.0160.00016.35
7.4.80.0120.01219.39
7.4.70.0070.01116.45
7.4.60.0030.01416.23
7.4.50.0040.01116.35
7.4.40.0070.01416.35
7.4.10.0160.00616.16
7.4.00.0180.00616.31
7.3.330.0040.00415.96
7.3.320.0000.00513.02
7.3.310.0020.00515.99
7.3.300.0040.00416.16
7.3.290.0060.00816.15
7.3.280.0030.01716.13
7.3.260.0140.00316.27
7.3.230.0120.00616.09
7.3.210.0120.00616.16
7.3.200.0120.00616.37
7.3.190.0030.01316.18
7.3.180.0130.00316.19
7.3.170.0100.00716.12
7.3.160.0150.00616.43
7.3.130.0040.01216.00
7.3.120.0100.01016.34
7.3.110.0050.01415.96
7.3.100.0070.01015.96
7.3.90.0080.00816.22
7.3.80.0130.00916.08
7.3.70.0120.00616.03
7.3.60.0080.00816.09
7.3.50.0190.00616.27
7.3.40.0100.01316.15
7.3.30.0060.01016.32
7.3.20.0060.01516.09
7.3.10.0040.01516.23
7.3.00.0070.01415.99
7.2.330.0100.01016.62
7.2.320.0090.00916.20
7.2.310.0090.00916.53
7.2.300.0130.00416.23
7.2.290.0080.00816.49
7.2.260.0110.01116.23
7.2.250.0090.01216.21
7.2.240.0040.01316.47
7.2.230.0100.01016.38
7.2.220.0090.01216.50
7.2.210.0090.01316.42
7.2.200.0150.00616.20
7.2.190.0070.01016.20
7.2.180.0110.00716.29
7.2.170.0040.01316.15
7.2.160.0080.00816.14
7.2.150.0240.01016.32
7.2.140.0160.00616.31
7.2.130.0060.01216.33
7.2.120.0110.01116.34
7.2.110.0050.01816.15
7.2.100.0090.00916.27
7.2.90.0120.00916.38
7.2.80.0100.01316.22
7.2.70.0130.01016.18
7.2.60.0110.01116.39
7.2.50.0080.00816.37
7.2.40.0110.00616.40
7.2.30.0030.01816.44
7.2.20.0080.00816.23
7.2.10.0140.00716.21
7.2.00.0130.00316.40
5.6.400.0220.00115.70

preferences:
28.07 ms | 403 KiB | 5 Q