3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hubspot_country = 'US'; $country_map = array('US' => 'United States'); $address_part = 'country'; $admin_contact_information = array(); isset($country_map[$hubspot_country]) ? $admin_contact_information[$address_part] = $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.70.0060.01016.36
8.3.60.0140.00318.30
8.3.50.0130.00516.38
8.3.40.0120.00318.62
8.3.30.0070.00718.55
8.3.20.0040.00420.35
8.3.10.0000.00821.90
8.3.00.0040.00420.84
8.2.180.0120.00618.31
8.2.170.0150.00022.96
8.2.160.0070.00722.30
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00022.29
8.2.120.0070.00026.35
8.2.110.0030.00720.47
8.2.100.0090.00317.84
8.2.90.0050.00318.98
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0020.00520.59
8.2.30.0030.00521.13
8.2.20.0000.00817.94
8.2.10.0000.00818.12
8.2.00.0000.00718.05
8.1.280.0110.00425.92
8.1.270.0050.00324.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00322.00
8.1.230.0110.00319.01
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0070.00217.35
8.1.190.0060.00317.23
8.1.180.0070.00018.10
8.1.170.0080.00018.52
8.1.160.0000.00718.93
8.1.150.0000.00720.52
8.1.140.0040.00419.43
8.1.130.0050.00318.88
8.1.120.0060.00317.40
8.1.110.0000.00717.30
8.1.100.0000.00717.29
8.1.90.0080.00017.31
8.1.80.0040.00417.45
8.1.70.0000.00717.29
8.1.60.0030.00617.59
8.1.50.0050.00317.44
8.1.40.0080.00017.46
8.1.30.0040.00417.55
8.1.20.0000.00817.64
8.1.10.0050.00217.57
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.27
8.0.270.0080.00017.22
8.0.260.0030.00316.77
8.0.250.0070.00016.80
8.0.240.0040.00416.81
8.0.230.0030.00716.79
8.0.220.0040.00416.75
8.0.210.0070.00016.75
8.0.200.0000.00716.86
8.0.190.0080.00016.90
8.0.180.0030.00316.77
8.0.170.0000.00816.84
8.0.160.0000.00816.88
8.0.150.0020.00516.78
8.0.140.0000.00716.72
8.0.130.0000.00713.16
8.0.120.0030.00616.82
8.0.110.0040.00416.83
8.0.100.0000.00716.74
8.0.90.0040.00416.68
8.0.80.0050.01016.76
8.0.70.0040.00416.79
8.0.60.0040.00416.68
8.0.50.0030.00516.91
8.0.30.0080.01017.10
8.0.20.0160.00417.40
8.0.10.0040.00416.92
8.0.00.0120.00916.82
7.4.330.0000.00615.55
7.4.320.0000.00716.43
7.4.300.0070.00016.52
7.4.290.0060.00316.59
7.4.280.0060.00316.57
7.4.270.0000.00716.30
7.4.260.0040.00416.54
7.4.250.0070.00016.33
7.4.240.0070.00016.45
7.4.230.0060.00016.55
7.4.220.0130.01016.56
7.4.210.0060.01216.47
7.4.200.0000.00716.62
7.4.160.0090.00816.46
7.4.150.0030.01317.40
7.4.140.0130.00917.86
7.4.130.0170.00316.43
7.4.120.0100.01016.53
7.4.110.0070.01116.45
7.4.100.0160.00516.45
7.4.90.0130.00316.56
7.4.80.0110.00719.39
7.4.70.0100.01216.63
7.4.60.0100.00716.45
7.4.50.0090.00216.35
7.4.40.0060.00916.43
7.4.30.0060.01216.46
7.4.00.0100.00714.83
7.3.330.0000.00613.01
7.3.320.0000.00513.05
7.3.310.0070.00016.20
7.3.300.0070.00016.23
7.3.290.0060.00816.34
7.3.280.0080.00816.31
7.3.270.0030.01317.40
7.3.260.0080.00916.33
7.3.250.0080.01016.29
7.3.240.0080.01216.34
7.3.230.0030.01816.51
7.3.210.0080.01116.64
7.3.200.0070.01016.34
7.3.190.0090.00616.16
7.3.180.0090.00616.43
7.3.170.0030.01216.38
7.3.160.0040.01116.45
7.3.10.0080.00316.26
7.3.00.0070.00716.50
7.2.330.0140.00316.70
7.2.320.0060.01316.44
7.2.310.0130.00516.53
7.2.300.0060.01216.67
7.2.290.0120.00916.68
7.2.130.0000.01416.71
7.2.120.0070.00716.68
7.2.110.0040.01116.54
7.2.100.0100.00316.64
7.2.90.0100.00316.83
7.2.80.0000.01316.71
7.2.70.0040.00416.82
7.2.60.0060.00816.95
7.2.50.0060.00616.70
7.2.40.0090.00616.79
7.2.30.0120.00316.43
7.2.20.0090.00916.91
7.2.10.0070.00716.39
7.2.00.0140.00618.23
7.1.250.0000.01115.93
7.1.200.0030.00615.54
7.1.100.0030.00818.06
7.1.70.0000.00817.21
7.1.60.0370.01733.19
7.1.50.0430.00332.90
7.1.40.0370.00732.51
7.1.30.0330.01032.57
7.1.20.0270.01332.78
7.1.10.0230.01014.67
7.1.00.0170.01014.76
7.0.200.0170.01014.66
7.0.190.0200.01014.53
7.0.180.0130.01314.18
7.0.170.0170.01314.49
7.0.160.0170.01014.18
7.0.150.0170.01014.33
7.0.140.0630.01314.43
7.0.130.0200.00714.48
7.0.120.0270.00014.49
7.0.110.0170.01014.48
7.0.100.0200.01714.16
7.0.90.0200.00714.50
7.0.80.0230.00314.65
7.0.70.0200.00714.67
7.0.60.0200.00714.20
7.0.50.0200.00714.76
7.0.40.0170.01014.57
7.0.30.0270.00714.84
7.0.20.0200.01014.65
7.0.10.0200.01014.49
7.0.00.0200.00714.71

preferences:
51.54 ms | 401 KiB | 5 Q