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] : '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.0080.00816.63
8.3.60.0090.01218.31
8.3.50.0030.01416.17
8.3.40.0120.00318.68
8.3.30.0110.00418.70
8.3.20.0040.00420.39
8.3.10.0000.00821.89
8.3.00.0080.00020.95
8.2.180.0150.00018.54
8.2.170.0040.01122.96
8.2.160.0140.00021.91
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00422.11
8.2.120.0050.00326.35
8.2.110.0060.00322.13
8.2.100.0060.00617.91
8.2.90.0050.00319.01
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0070.00020.45
8.2.30.0000.00820.96
8.2.20.0000.00817.95
8.2.10.0040.00418.09
8.2.00.0000.00718.07
8.1.280.0110.00425.92
8.1.270.0070.00023.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00319.28
8.1.230.0060.00619.15
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.55
8.1.160.0040.00418.96
8.1.150.0000.00718.89
8.1.140.0000.00719.44
8.1.130.0030.00518.81
8.1.120.0060.00317.32
8.1.110.0000.00717.42
8.1.100.0000.00717.30
8.1.90.0000.00717.39
8.1.80.0000.00817.26
8.1.70.0030.00317.39
8.1.60.0030.00717.55
8.1.50.0040.00417.45
8.1.40.0040.00417.36
8.1.30.0040.00417.53
8.1.20.0040.00417.63
8.1.10.0000.00717.58
8.1.00.0070.00017.46
8.0.300.0070.00018.77
8.0.290.0050.00216.63
8.0.280.0030.00318.30
8.0.270.0030.00317.27
8.0.260.0070.00016.81
8.0.250.0000.00716.87
8.0.240.0020.00516.84
8.0.230.0060.00316.94
8.0.220.0080.00016.86
8.0.210.0000.00716.88
8.0.200.0030.00316.94
8.0.190.0040.00416.87
8.0.180.0030.00516.96
8.0.170.0040.00416.89
8.0.160.0000.00916.90
8.0.150.0000.00716.87
8.0.140.0030.00316.81
8.0.130.0030.00313.28
8.0.120.0040.00416.77
8.0.110.0030.00516.76
8.0.100.0040.00416.86
8.0.90.0070.00016.90
8.0.80.0100.01016.85
8.0.70.0040.00416.76
8.0.60.0000.00716.96
8.0.50.0000.00816.78
8.0.30.0090.00817.13
8.0.20.0090.00917.40
8.0.10.0040.00417.04
8.0.00.0040.01216.80
7.4.330.0000.00615.55
7.4.320.0070.00016.51
7.4.300.0030.00316.55
7.4.290.0050.00316.55
7.4.280.0000.00816.44
7.4.270.0000.00716.59
7.4.260.0030.00616.45
7.4.250.0040.00416.42
7.4.240.0000.00716.55
7.4.230.0030.00616.65
7.4.220.0090.00916.39
7.4.210.0110.00316.59
7.4.200.0000.00716.25
7.4.160.0110.00516.43
7.4.150.0140.00417.40
7.4.140.0110.00817.86
7.4.130.0130.00816.32
7.4.120.0090.01116.51
7.4.110.0160.00316.48
7.4.100.0130.01316.52
7.4.90.0130.00316.42
7.4.80.0080.00819.39
7.4.70.0050.01416.46
7.4.60.0000.01716.28
7.4.50.0090.00616.45
7.4.40.0060.00916.57
7.4.30.0090.01316.59
7.4.00.0090.00614.88
7.3.330.0050.00013.20
7.3.320.0000.00613.08
7.3.310.0030.00316.17
7.3.300.0040.00416.38
7.3.290.0060.00916.27
7.3.280.0080.00816.31
7.3.270.0030.01317.40
7.3.260.0120.00516.42
7.3.250.0140.00616.33
7.3.240.0060.01216.44
7.3.230.0070.01016.20
7.3.210.0090.00916.33
7.3.200.0080.00816.32
7.3.190.0000.01716.27
7.3.180.0090.00616.50
7.3.170.0090.00616.30
7.3.160.0160.00016.52
7.2.330.0100.01316.73
7.2.320.0100.01116.69
7.2.310.0070.01016.71
7.2.300.0090.00916.66
7.2.290.0040.01216.57
7.2.60.0030.01016.65
7.2.00.0030.00619.18
7.1.200.0140.00615.53
7.1.100.0030.01018.14
7.1.70.0000.00817.10
7.1.60.0470.01033.32
7.1.50.0470.01033.01
7.1.40.0500.01032.77
7.1.30.0630.01032.50
7.1.20.0530.01032.75
7.1.10.0370.01014.76
7.1.00.0100.00314.86
7.0.200.0370.01315.00
7.0.190.0430.00714.53
7.0.180.0370.01014.58
7.0.170.0430.01314.54
7.0.160.0470.01014.58
7.0.150.0370.00714.30
7.0.140.0330.00714.54
7.0.130.0000.01014.52
7.0.120.0000.01014.36
7.0.110.0300.01314.52
7.0.100.0330.00714.43
7.0.90.0270.01314.62
7.0.80.0400.00314.65
7.0.70.0400.00014.59
7.0.60.0000.01014.23
7.0.50.0170.00714.72
7.0.40.0470.00714.65
7.0.30.0570.00314.77
7.0.20.0100.01014.48
7.0.10.0000.01314.47
7.0.00.0470.00014.44

preferences:
57.13 ms | 400 KiB | 5 Q