3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all_states = [ "Ontario" => 0, "Manitoba" => 0, "New Brunswick" => 0, "Yukon" => 0, "Saskatchewan" => 0, "Prince Edward Island" => 0, "Alberta" => 0, "Quebec" => 0, "Nova Scotia" => 0, "British Columbia" => 0, "Nunavut" => 0, "Newfoundland and Labrador" => 0, "Northwest Territories" => 0 ]; $country_states = [ "Alberta" => 17, "Cairo" => 1, "Calgary" => 1, "ddd" => 4, "gfdxf" => 1, "New Cairo" => 1, "Ontario" => 1, "secret" => 30 ]; var_export(array_replace($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.0140.00620.39
8.4.110.0120.00918.76
8.4.100.0040.00417.67
8.4.90.0040.00517.66
8.4.80.0040.00517.56
8.4.70.0130.00717.76
8.4.60.0110.00919.15
8.4.50.0090.01019.28
8.4.40.0160.00319.05
8.4.30.0060.00318.80
8.4.20.0120.00620.61
8.4.10.0000.00819.34
8.3.250.0110.00718.51
8.3.240.0110.00718.95
8.3.230.0110.00716.34
8.3.220.0040.00317.00
8.3.210.0150.00520.71
8.3.200.0040.00516.44
8.3.190.0040.00417.29
8.3.180.0130.00518.02
8.3.170.0120.00616.97
8.3.160.0090.00918.75
8.3.150.0070.01117.17
8.3.140.0150.00316.39
8.3.130.0110.00418.20
8.3.120.0040.01118.79
8.3.110.0080.00020.94
8.3.100.0040.00416.50
8.3.90.0080.00026.77
8.3.80.0000.01019.36
8.3.70.0100.01018.55
8.3.60.0120.00918.43
8.3.50.0080.01123.63
8.3.40.0120.00318.50
8.3.30.0110.00318.53
8.3.20.0070.00020.73
8.3.10.0080.00021.75
8.3.00.0080.00021.78
8.2.290.0140.00520.34
8.2.280.0050.00418.31
8.2.270.0180.00016.80
8.2.260.0090.00918.80
8.2.250.0170.00016.46
8.2.240.0130.00316.89
8.2.230.0120.00322.58
8.2.220.0070.00324.06
8.2.210.0030.00526.77
8.2.200.0070.00318.88
8.2.190.0080.00616.58
8.2.180.0030.01418.16
8.2.170.0040.01122.96
8.2.160.0070.00722.25
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00026.16
8.2.110.0060.00322.15
8.2.100.0040.00819.32
8.2.90.0060.00319.09
8.2.80.0080.00017.97
8.2.70.0040.00419.65
8.2.60.0080.00018.03
8.2.50.0000.00719.34
8.2.40.0040.00420.75
8.2.30.0000.00819.06
8.2.20.0040.00417.87
8.2.10.0040.00419.16
8.2.00.0000.00819.17
8.1.330.0050.00518.32
8.1.320.0110.00816.14
8.1.310.0000.00916.87
8.1.300.0000.00918.25
8.1.290.0030.00730.84
8.1.280.0110.00725.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0070.01123.92
8.1.230.0090.00319.10
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.10
8.1.180.0000.00719.09
8.1.170.0030.00618.32
8.1.160.0040.00318.89
8.1.150.0070.00019.00
8.1.140.0050.00220.67
8.1.130.0000.00722.01
8.1.120.0040.00417.30
8.1.110.0040.00417.45
8.1.100.0040.00417.41
8.1.90.0040.00417.40
8.1.80.0000.00917.38
8.1.70.0040.00417.32
8.1.60.0050.00417.40
8.1.50.0030.00517.36
8.1.40.0090.00017.51
8.1.30.0000.00717.55
8.1.20.0000.00917.58
8.1.10.0080.00017.41
8.1.00.0000.00817.27
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.49
8.0.270.0000.00716.67
8.0.260.0030.00320.00
8.0.250.0000.00816.86
8.0.240.0080.00016.88
8.0.230.0000.00716.83
8.0.220.0000.00816.74
8.0.210.0000.00716.77
8.0.200.0030.00316.85
8.0.190.0040.00416.89
8.0.180.0040.00416.84
8.0.170.0040.00516.81
8.0.160.0000.00716.79
8.0.150.0070.00016.75
8.0.140.0000.00816.77
8.0.130.0000.00713.30
8.0.120.0040.00416.84
8.0.110.0080.00016.80
8.0.100.0050.00316.83
8.0.90.0040.00416.83
8.0.80.0090.00816.86
8.0.70.0040.00416.72
8.0.60.0050.00216.75
8.0.50.0050.00316.79
8.0.30.0100.00717.00
8.0.20.0070.01117.16
8.0.10.0000.00716.98
8.0.00.0100.01316.75
7.4.330.0020.00216.84
7.4.320.0030.00316.46
7.4.300.0130.00016.53
7.4.290.0070.00016.50
7.4.280.0050.00316.43
7.4.270.0070.00016.54
7.4.260.0030.00313.23
7.4.250.0030.00316.52
7.4.240.0000.00716.42
7.4.230.0040.00416.44
7.4.220.0030.00316.59
7.4.210.0080.00916.52
7.4.200.0000.00716.56
7.4.130.0110.00716.37
7.4.120.0030.01316.40
7.4.110.0090.00916.66
7.4.100.0110.00816.46
7.4.90.0080.00816.49
7.4.80.0070.01419.39
7.4.70.0100.00616.33
7.4.60.0110.00816.29
7.4.50.0100.00316.59
7.4.40.0090.00916.44
7.4.10.0080.01216.46
7.4.00.0080.00916.25
7.3.330.0070.00016.16
7.3.320.0050.00013.02
7.3.310.0000.00616.04
7.3.300.0000.00716.17
7.3.290.0100.00616.15
7.3.280.0110.00316.13
7.3.260.0080.01216.09
7.3.230.0040.01716.34
7.3.210.0060.01116.41
7.3.200.0100.00716.32
7.3.190.0060.00916.22
7.3.180.0040.01116.13
7.3.170.0130.00316.13
7.3.160.0100.00616.07
7.3.130.0120.00616.13
7.3.120.0100.00616.16
7.3.110.0160.00316.10
7.3.100.0080.01215.84
7.3.90.0130.01316.14
7.3.80.0230.00016.24
7.3.70.0070.01116.11
7.3.60.0070.01316.31
7.3.50.0150.00716.00
7.3.40.0070.01116.09
7.3.30.0230.00016.25
7.3.20.0140.00715.97
7.3.10.0080.01116.10
7.3.00.0140.00816.02
7.2.330.0120.01216.31
7.2.320.0070.01016.31
7.2.310.0040.01416.53
7.2.300.0080.00816.46
7.2.290.0090.00916.52
7.2.260.0040.01816.45
7.2.250.0110.00716.29
7.2.240.0090.01316.29
7.2.230.0180.00316.34
7.2.220.0120.00616.42
7.2.210.0120.00916.23
7.2.200.0140.00316.20
7.2.190.0070.01116.30
7.2.180.0000.02416.14
7.2.170.0100.01315.99
7.2.160.0110.00916.26
7.2.150.0110.00816.21
7.2.140.0070.01516.30
7.2.130.0160.00516.35
7.2.120.0050.01416.45
7.2.110.0100.01316.11
7.2.100.0190.00516.39
7.2.90.0110.01416.16
7.2.80.0100.01516.25
7.2.70.0170.00816.23
7.2.60.0150.00816.42
7.2.50.0110.00716.30
7.2.40.0110.00716.44
7.2.30.0070.01016.55
7.2.20.0140.00516.30
7.2.10.0070.01016.34
7.2.00.0060.01216.18

preferences:
17.69 ms | 403 KiB | 5 Q