3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hubspot_country = 'United States'; $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.00418.18
8.3.50.0040.01116.16
8.3.40.0150.00418.70
8.3.30.0140.00018.49
8.3.20.0080.00020.21
8.3.10.0000.00723.61
8.3.00.0070.00020.95
8.2.180.0130.00318.12
8.2.170.0100.01022.96
8.2.160.0070.00722.12
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00422.31
8.2.120.0070.00026.35
8.2.110.0100.00020.39
8.2.100.0060.00617.72
8.2.90.0080.00019.10
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0030.00618.03
8.2.50.0030.00518.10
8.2.40.0080.00020.45
8.2.30.0040.00419.31
8.2.20.0020.00518.13
8.2.10.0040.00418.00
8.2.00.0070.00018.06
8.1.280.0070.01125.92
8.1.270.0070.00023.84
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00620.83
8.1.230.0040.00819.28
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0000.01217.35
8.1.190.0050.00317.36
8.1.180.0040.00418.10
8.1.170.0060.00318.53
8.1.160.0000.00719.08
8.1.150.0040.00418.85
8.1.140.0050.00219.52
8.1.130.0000.00718.76
8.1.120.0100.00017.46
8.1.110.0080.00017.37
8.1.100.0000.00817.31
8.1.90.0000.00717.41
8.1.80.0070.00017.41
8.1.70.0030.00317.41
8.1.60.0030.00617.52
8.1.50.0030.00617.47
8.1.40.0000.00717.52
8.1.30.0040.00417.64
8.1.20.0040.00417.59
8.1.10.0040.00417.45
8.1.00.0040.00417.52
8.0.300.0070.00018.77
8.0.290.0000.00816.58
8.0.280.0030.00318.41
8.0.270.0070.00017.12
8.0.260.0000.00616.77
8.0.250.0030.00316.94
8.0.240.0000.00716.79
8.0.230.0080.00016.78
8.0.220.0070.00016.88
8.0.210.0050.00216.82
8.0.200.0050.00316.94
8.0.190.0040.00416.89
8.0.180.0040.00416.80
8.0.170.0000.00816.92
8.0.160.0030.00616.82
8.0.150.0090.00016.76
8.0.140.0040.00416.82
8.0.130.0000.00813.24
8.0.120.0000.00716.82
8.0.110.0000.00816.75
8.0.100.0050.00316.65
8.0.90.0000.00816.95
8.0.80.0120.00416.73
8.0.70.0040.00416.79
8.0.60.0040.00416.64
8.0.50.0050.00316.76
8.0.30.0060.01117.04
8.0.20.0110.01217.40
8.0.10.0030.00516.78
8.0.00.0120.00616.68
7.4.330.0000.00515.55
7.4.320.0000.00616.31
7.4.300.0060.00016.46
7.4.290.0000.00816.36
7.4.280.0040.00416.49
7.4.270.0040.00416.46
7.4.260.0070.00016.53
7.4.250.0070.00016.55
7.4.240.0000.00716.41
7.4.230.0070.00016.58
7.4.220.0130.01316.48
7.4.210.0110.00416.34
7.4.200.0000.00716.52
7.4.160.0030.01216.37
7.4.150.0080.00817.40
7.4.140.0130.01117.86
7.4.130.0090.01216.44
7.4.120.0110.00816.46
7.4.110.0050.01116.59
7.4.100.0150.00616.50
7.4.90.0110.00616.65
7.4.80.0060.01019.39
7.4.70.0090.01216.44
7.4.60.0090.00916.41
7.4.50.0140.00316.62
7.4.40.0210.02816.38
7.4.30.0090.01316.41
7.4.00.0040.01214.59
7.3.330.0050.00013.27
7.3.320.0000.00513.26
7.3.310.0040.00416.47
7.3.300.0040.00416.28
7.3.290.0080.00616.30
7.3.280.0090.00716.31
7.3.270.0140.00417.40
7.3.260.0110.01016.45
7.3.250.0130.00616.38
7.3.240.0070.01016.43
7.3.230.0000.01616.35
7.3.210.0070.01016.50
7.3.200.0120.00916.62
7.3.190.0090.00616.33
7.3.180.0120.01216.34
7.3.170.0040.01216.21
7.3.160.0120.00416.47
7.2.330.0040.01416.63
7.2.320.0120.01216.64
7.2.310.0100.00716.55
7.2.300.0030.01316.61
7.2.290.0100.00616.66
7.2.60.0060.01016.97
7.2.00.0060.00619.46
7.1.200.0110.00315.96
7.1.100.0000.01018.41
7.1.70.0030.00317.34
7.1.60.0400.01733.33
7.1.50.0330.01032.96
7.1.40.0370.00732.68
7.1.30.0330.01032.57
7.1.20.0230.02032.82
7.1.10.0300.00014.72
7.1.00.0200.01015.01
7.0.200.0270.00714.97
7.0.190.0230.00714.89
7.0.180.0200.01014.46
7.0.170.0230.00714.42
7.0.160.0270.00314.46
7.0.150.0230.00714.35
7.0.140.0330.01014.54
7.0.130.0200.01014.61
7.0.120.0270.00314.52
7.0.110.0170.01314.48
7.0.100.0230.01014.33
7.0.90.0200.01014.36
7.0.80.0230.00714.73
7.0.70.0230.00714.36
7.0.60.0270.00314.38
7.0.50.0230.00714.62
7.0.40.0300.00314.59
7.0.30.0270.00714.62
7.0.20.0230.01314.66
7.0.10.0230.01314.77
7.0.00.0270.00714.50

preferences:
53.62 ms | 401 KiB | 5 Q