3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hubspot_country = 'United'; $country_map = array('United States' => 'US'); $address_part = 'country'; $admin_contact_information = array(); $admin_contact_information[$address_part] = isset($country_map[$hubspot_country]) ? $country_map[$hubspot_country] : 'US'; var_dump($admin_contact_information[$address_part]); ?>

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.0140.00718.43
8.3.50.0030.01016.26
8.3.40.0090.00918.61
8.3.30.0070.00718.47
8.3.20.0090.00020.33
8.3.10.0040.00423.66
8.3.00.0080.00020.93
8.2.180.0110.00418.41
8.2.170.0110.00322.96
8.2.160.0100.00322.02
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.52
8.2.120.0040.00426.35
8.2.110.0100.00720.57
8.2.100.0060.00617.78
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0050.00317.72
8.2.60.0090.00017.93
8.2.50.0050.00318.10
8.2.40.0040.00420.55
8.2.30.0000.00919.17
8.2.20.0000.00718.11
8.2.10.0040.00417.98
8.2.00.0000.00718.04
8.1.280.0090.01225.92
8.1.270.0080.00023.70
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00720.77
8.1.230.0040.00719.15
8.1.220.0080.00017.76
8.1.210.0040.00418.77
8.1.200.0000.01117.35
8.1.190.0070.00017.22
8.1.180.0070.00018.10
8.1.170.0000.00818.57
8.1.160.0050.00319.04
8.1.150.0030.00518.81
8.1.140.0000.00719.56
8.1.130.0070.00018.75
8.1.120.0040.00417.31
8.1.110.0050.00517.44
8.1.100.0040.00417.32
8.1.90.0000.00717.43
8.1.80.0030.00517.44
8.1.70.0000.00717.36
8.1.60.0000.00917.43
8.1.50.0050.00517.30
8.1.40.0030.00617.36
8.1.30.0000.00817.43
8.1.20.0040.00417.51
8.1.10.0040.00417.39
8.1.00.0040.00417.35
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0040.00418.39
8.0.270.0000.00717.21
8.0.260.0000.00816.67
8.0.250.0000.00816.94
8.0.240.0040.00416.76
8.0.230.0040.00416.96
8.0.220.0030.00316.82
8.0.210.0000.00716.72
8.0.200.0000.00616.87
8.0.190.0050.00316.79
8.0.180.0040.00416.84
8.0.170.0050.00316.78
8.0.160.0080.00016.84
8.0.150.0040.00416.84
8.0.140.0030.00316.79
8.0.130.0030.00513.16
8.0.120.0000.00716.73
8.0.110.0040.00416.75
8.0.100.0000.00916.78
8.0.90.0000.00716.88
8.0.80.0100.00616.90
8.0.70.0020.00516.88
8.0.60.0070.00016.79
8.0.50.0040.00416.84
8.0.30.0080.01017.13
8.0.20.0140.01117.40
8.0.10.0070.00016.84
8.0.00.0120.00916.57
7.4.330.0020.00215.55
7.4.320.0030.00316.54
7.4.300.0030.00316.45
7.4.290.0040.00416.58
7.4.280.0030.00516.54
7.4.270.0050.00316.34
7.4.260.0060.00316.41
7.4.250.0000.00716.49
7.4.240.0050.00216.38
7.4.230.0090.00016.43
7.4.220.0060.01216.35
7.4.210.0070.00716.62
7.4.200.0000.00716.44
7.4.160.0110.00816.51
7.4.150.0080.00817.40
7.4.140.0110.01217.86
7.4.130.0090.01516.50
7.4.120.0110.00716.50
7.4.110.0120.00616.34
7.4.100.0100.01516.35
7.4.90.0090.00916.46
7.4.80.0100.00719.39
7.4.70.0120.00916.58
7.4.60.0080.01916.63
7.4.50.0040.01516.38
7.4.40.0230.03116.60
7.4.30.0120.01416.51
7.4.00.0030.01314.60
7.3.330.0000.00513.07
7.3.320.0000.00513.08
7.3.310.0030.00416.42
7.3.300.0070.00016.39
7.3.290.0070.00916.38
7.3.280.0070.01016.31
7.3.270.0060.01017.40
7.3.260.0100.01016.46
7.3.250.0100.00816.42
7.3.240.0120.00616.37
7.3.230.0120.00916.27
7.3.210.0120.00616.60
7.3.200.0100.00716.50
7.3.190.0100.00616.45
7.3.180.0130.00316.23
7.3.170.0060.00916.39
7.3.160.0060.01016.17
7.3.120.0000.01514.72
7.3.110.0100.00914.77
7.3.100.0060.00914.96
7.3.90.0060.00314.78
7.3.80.0000.00914.95
7.3.70.0000.01514.59
7.3.60.0070.01014.65
7.3.50.0110.00314.75
7.3.40.0090.00914.59
7.3.30.0110.00314.99
7.3.20.0030.00716.84
7.3.10.0090.00616.63
7.3.00.0060.00616.57
7.2.330.0130.00316.60
7.2.320.0100.00716.47
7.2.310.0110.00616.53
7.2.300.0090.00916.58
7.2.290.0110.01116.51
7.2.250.0060.01014.99
7.2.240.0070.01415.07
7.2.230.0060.00915.16
7.2.220.0030.00714.89
7.2.210.0070.00415.23
7.2.200.0030.01014.82
7.2.190.0100.00315.10
7.2.180.0120.00014.80
7.2.170.0100.00715.17
7.2.130.0070.01316.65
7.2.120.0090.00916.47
7.2.110.0070.00716.63
7.2.100.0130.01316.64
7.2.90.0120.00616.70
7.2.80.0080.01516.75
7.2.70.0120.01516.96
7.2.60.0150.00516.63
7.2.50.0190.00616.32
7.2.40.0060.01316.76
7.2.30.0100.00716.81
7.2.20.0070.01016.65
7.2.10.0170.01116.27
7.2.00.0130.00418.06
7.1.330.0070.00715.88
7.1.320.0040.00715.57
7.1.310.0040.01115.92
7.1.300.0060.00315.76
7.1.290.0060.00915.61
7.1.280.0070.00715.75
7.1.270.0080.00315.89
7.1.260.0120.00415.60
7.1.250.0070.00715.61
7.1.200.0070.00715.86
7.1.100.0040.00718.25
7.1.70.0080.00017.37
7.1.60.0370.00733.28
7.1.50.0330.01032.82
7.1.40.0330.00732.79
7.1.30.0230.01732.70
7.1.20.0370.01732.63
7.1.10.0170.01014.94
7.1.00.0270.00714.75
7.0.200.0170.01014.65
7.0.190.0170.01014.61
7.0.180.0200.00714.34
7.0.170.0300.00014.46
7.0.160.0170.01014.30
7.0.150.0300.01314.38
7.0.140.0170.01014.52
7.0.130.0370.00714.82
7.0.120.0170.01014.64
7.0.110.0230.00714.55
7.0.100.0170.01014.40
7.0.90.0200.01014.47
7.0.80.0230.00714.55
7.0.70.0200.01314.36
7.0.60.0270.00314.16
7.0.50.0230.00714.62
7.0.40.0230.00714.60
7.0.30.0130.01314.80
7.0.20.0230.00714.68
7.0.10.0230.00714.76
7.0.00.0270.00314.50

preferences:
35.82 ms | 400 KiB | 5 Q