3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hubspot_country = 'United State'; $country_map = array('United States' => 'US'); $address_part = 'country'; $admin_contact_information = array(); isset($country_map[$hubspot_country]) ? $admin_contact_information[$address_part] = $country_map[$hubspot_country] : $admin_contact_information[$address_part] = 'test no'; 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.0070.01118.22
8.3.50.0130.00716.11
8.3.40.0150.00418.74
8.3.30.0110.00318.84
8.3.20.0080.00020.16
8.3.10.0080.00021.84
8.3.00.0050.00321.02
8.2.180.0170.00318.41
8.2.170.0100.01022.96
8.2.160.0070.00722.03
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.00722.26
8.2.120.0050.00326.35
8.2.110.0040.00721.93
8.2.100.0060.00817.66
8.2.90.0000.00819.17
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0000.00922.23
8.2.30.0090.00019.25
8.2.20.0000.00718.12
8.2.10.0040.00418.06
8.2.00.0050.00218.00
8.1.280.0130.00625.92
8.1.270.0050.00323.91
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0090.00024.01
8.1.230.0070.00422.20
8.1.220.0030.00517.79
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0000.00918.10
8.1.170.0090.00018.59
8.1.160.0070.00019.05
8.1.150.0000.00718.92
8.1.140.0040.00419.42
8.1.130.0030.00318.80
8.1.120.0000.01017.43
8.1.110.0050.00317.39
8.1.100.0000.00917.36
8.1.90.0060.00317.39
8.1.80.0040.00417.35
8.1.70.0000.00717.41
8.1.60.0080.00017.47
8.1.50.0030.00617.46
8.1.40.0040.00417.46
8.1.30.0040.00417.43
8.1.20.0030.00617.57
8.1.10.0030.00517.59
8.1.00.0070.00017.46
8.0.300.0060.00418.77
8.0.290.0000.00816.63
8.0.280.0030.00318.37
8.0.270.0070.00017.24
8.0.260.0000.00918.38
8.0.250.0070.00016.82
8.0.240.0040.00416.66
8.0.230.0030.00316.93
8.0.220.0050.00216.89
8.0.210.0040.00416.70
8.0.200.0020.00516.90
8.0.190.0030.00616.89
8.0.180.0040.00416.88
8.0.170.0030.00316.89
8.0.160.0050.00216.88
8.0.150.0050.00216.82
8.0.140.0000.00916.84
8.0.130.0000.00713.23
8.0.120.0030.00416.77
8.0.110.0040.00416.74
8.0.100.0040.00416.86
8.0.90.0000.00716.68
8.0.80.0090.00616.78
8.0.70.0040.00416.77
8.0.60.0030.00516.82
8.0.50.0000.00716.72
8.0.30.0080.01016.92
8.0.20.0100.00917.40
8.0.10.0040.00416.77
8.0.00.0070.01116.59
7.4.330.0030.00315.55
7.4.320.0060.00016.58
7.4.300.0000.00616.43
7.4.290.0070.00016.43
7.4.280.0000.00816.45
7.4.270.0050.00316.52
7.4.260.0030.00616.45
7.4.250.0030.00316.50
7.4.240.0030.00316.53
7.4.230.0030.00316.43
7.4.220.0090.00916.56
7.4.210.0060.01216.49
7.4.200.0030.00516.65
7.4.160.0140.00416.29
7.4.150.0150.00617.40
7.4.140.0100.01317.86
7.4.130.0100.01416.35
7.4.120.0080.01016.45
7.4.110.0060.01216.27
7.4.100.0170.00916.46
7.4.90.0060.01016.21
7.4.80.0050.01119.39
7.4.70.0140.00616.34
7.4.60.0100.00916.51
7.4.50.0090.00616.38
7.4.40.0030.01316.47
7.4.30.0030.01816.61
7.4.00.0070.00714.99
7.3.330.0000.00513.25
7.3.320.0030.00313.18
7.3.310.0000.00616.16
7.3.300.0040.00416.23
7.3.290.0080.01116.38
7.3.280.0080.00916.29
7.3.270.0060.01217.40
7.3.260.0030.01316.39
7.3.250.0120.00916.36
7.3.240.0060.01016.38
7.3.230.0160.00616.45
7.3.210.0120.00616.61
7.3.200.0110.00716.23
7.3.190.0070.01016.44
7.3.180.0140.00616.31
7.3.170.0030.01216.20
7.3.160.0090.00616.56
7.2.330.0040.01316.78
7.2.320.0070.01016.37
7.2.310.0100.00716.64
7.2.300.0060.01016.65
7.2.290.0110.00616.61
7.2.60.0030.00916.98
7.2.00.0000.01219.29
7.1.200.0060.00915.52
7.1.100.0000.01318.22
7.1.70.0100.00717.18
7.1.60.0370.00733.30
7.1.50.0300.01332.71
7.1.40.0300.01332.39
7.1.30.0300.01332.47
7.1.20.0830.00732.72
7.1.10.0370.00714.66
7.1.00.0200.00714.69
7.0.200.0230.00714.79
7.0.190.0170.01014.77
7.0.180.0230.01014.46
7.0.170.0230.00714.45
7.0.160.0200.01714.36
7.0.150.0170.01314.36
7.0.140.0270.00714.25
7.0.130.0130.01314.64
7.0.120.0170.01014.54
7.0.110.0200.00714.37
7.0.100.0230.00714.25
7.0.90.0300.00714.50
7.0.80.0230.00714.54
7.0.70.0270.00314.62
7.0.60.0230.01014.08
7.0.50.0270.00714.41
7.0.40.0170.01314.70
7.0.30.0230.00714.74
7.0.20.0200.01014.82
7.0.10.0200.01014.54
7.0.00.0270.00314.37

preferences:
41.12 ms | 401 KiB | 5 Q