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(); $admin_contact_information[$address_part] = isset($country_map[$hubspot_country]) ? $country_map[$hubspot_country] : 'no set'; 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.01418.28
8.3.50.0070.01116.38
8.3.40.0110.00718.60
8.3.30.0030.01018.27
8.3.20.0000.00720.34
8.3.10.0040.00421.94
8.3.00.0070.00020.89
8.2.180.0100.00718.29
8.2.170.0120.00322.96
8.2.160.0000.01422.14
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00722.30
8.2.120.0080.00026.35
8.2.110.0030.00622.11
8.2.100.0080.00317.73
8.2.90.0000.00719.22
8.2.80.0080.00018.05
8.2.70.0000.00917.50
8.2.60.0030.00517.91
8.2.50.0060.00318.10
8.2.40.0000.00720.47
8.2.30.0040.00419.26
8.2.20.0070.00018.13
8.2.10.0000.00718.13
8.2.00.0000.00718.07
8.1.280.0120.00625.92
8.1.270.0040.00423.88
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00420.71
8.1.230.0000.01119.16
8.1.220.0090.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00617.36
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0040.00419.02
8.1.150.0050.00218.75
8.1.140.0040.00419.41
8.1.130.0000.00718.74
8.1.120.0030.00617.31
8.1.110.0040.00417.46
8.1.100.0040.00417.41
8.1.90.0000.00717.45
8.1.80.0060.00317.43
8.1.70.0030.00317.35
8.1.60.0050.00317.52
8.1.50.0030.00617.46
8.1.40.0040.00417.51
8.1.30.0040.00417.58
8.1.20.0000.00717.45
8.1.10.0040.00417.38
8.1.00.0080.00017.36
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.33
8.0.270.0040.00417.07
8.0.260.0070.00016.82
8.0.250.0000.00616.95
8.0.240.0040.00416.80
8.0.230.0030.00316.84
8.0.220.0040.00416.70
8.0.210.0000.00716.80
8.0.200.0000.00616.76
8.0.190.0040.00416.87
8.0.180.0070.00016.84
8.0.170.0000.00716.83
8.0.160.0040.00416.86
8.0.150.0110.00016.78
8.0.140.0040.00416.71
8.0.130.0050.00313.19
8.0.120.0030.00616.78
8.0.110.0020.00516.73
8.0.100.0040.00416.81
8.0.90.0040.00416.73
8.0.80.0110.00516.72
8.0.70.0040.00416.89
8.0.60.0040.00416.90
8.0.50.0000.00716.69
8.0.30.0090.00917.17
8.0.20.0120.01017.40
8.0.10.0040.00416.83
8.0.00.0070.01316.62
7.4.330.0050.00015.55
7.4.320.0060.00016.45
7.4.300.0030.00316.47
7.4.290.0070.00316.54
7.4.280.0050.00316.54
7.4.270.0000.00716.56
7.4.260.0000.00816.39
7.4.250.0030.00316.42
7.4.240.0000.00716.52
7.4.230.0000.00716.31
7.4.220.0190.01316.57
7.4.210.0120.00316.49
7.4.200.0000.00716.47
7.4.160.0130.00516.57
7.4.150.0060.01217.40
7.4.140.0100.01417.86
7.4.130.0140.01016.50
7.4.120.0100.00916.47
7.4.110.0160.00316.50
7.4.100.0170.00316.49
7.4.90.0060.01116.39
7.4.80.0040.01319.39
7.4.70.0110.00616.44
7.4.60.0090.01516.44
7.4.50.0000.01716.38
7.4.40.0180.02416.42
7.4.30.0100.01016.40
7.4.00.0030.01214.80
7.3.330.0020.00213.23
7.3.320.0060.00013.18
7.3.310.0060.00016.37
7.3.300.0040.00416.27
7.3.290.0120.00816.33
7.3.280.0070.00916.33
7.3.270.0110.00617.40
7.3.260.0120.00916.44
7.3.250.0080.01116.41
7.3.240.0070.01016.46
7.3.230.0100.00616.45
7.3.210.0150.00616.48
7.3.200.0110.00616.36
7.3.190.0070.00716.29
7.3.180.0040.01616.29
7.3.170.0000.01616.26
7.3.160.0030.01216.22
7.2.330.0130.00616.79
7.2.320.0060.01216.70
7.2.310.0060.01516.86
7.2.300.0140.00416.64
7.2.290.0090.00916.68
7.2.110.0030.01016.57
7.2.100.0090.00316.24
7.2.90.0060.00616.78
7.2.80.0090.00616.52
7.2.70.0060.00916.77
7.2.60.0060.01016.84
7.2.50.0060.01016.91
7.2.40.0140.00016.94
7.2.30.0100.00317.08
7.2.20.0070.01016.71
7.2.10.0110.00316.66
7.2.00.0070.00617.91
7.1.230.0110.00015.42
7.1.220.0070.00715.75
7.1.210.0100.00315.68
7.1.200.0030.01015.70
7.1.190.0030.01315.85
7.1.180.0030.01015.68
7.1.170.0070.00715.86
7.1.160.0100.00315.89
7.1.150.0060.00615.60
7.1.140.0090.00615.71
7.1.130.0090.00315.84
7.1.120.0120.00315.74
7.1.110.0140.00015.84
7.1.100.0080.00416.99
7.1.90.0100.00315.61
7.1.80.0000.01315.91
7.1.70.0000.01116.32
7.1.60.0180.01124.55
7.1.50.0300.00724.31
7.1.40.0370.00524.36
7.1.30.2610.01724.30
7.1.20.0230.01624.37
7.1.10.0320.00515.07
7.1.00.0270.01315.21
7.0.310.0060.00915.41
7.0.300.0080.00615.27
7.0.290.0060.00915.24
7.0.280.0060.00915.52
7.0.270.0090.00315.29
7.0.260.0080.00615.44
7.0.250.0100.00315.09
7.0.240.0090.00615.42
7.0.230.0090.00315.43
7.0.220.0110.00315.18
7.0.210.0060.00615.10
7.0.200.0150.01214.94
7.0.190.0130.00715.00
7.0.180.0190.00314.92
7.0.170.0170.00714.87
7.0.160.0350.00514.91
7.0.150.0280.00714.79
7.0.140.0260.01014.94
7.0.130.0290.00715.09
7.0.120.0200.01514.99
7.0.110.0240.00814.65
7.0.100.0320.00714.95
7.0.90.0310.00714.90
7.0.80.0290.01114.79
7.0.70.0330.01214.98
7.0.60.0340.01114.72
7.0.50.0260.00814.96
7.0.40.0330.00314.10
7.0.30.0220.01013.91
7.0.20.0250.01314.06
7.0.10.0280.00813.93
7.0.00.0450.00713.87
5.6.380.0090.00313.87

preferences:
38.96 ms | 400 KiB | 5 Q