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(); 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.60.0140.00318.31
8.3.50.0100.00715.98
8.3.40.0070.01018.66
8.3.30.0040.01118.68
8.3.20.0000.00720.18
8.3.10.0040.00421.64
8.3.00.0020.00520.85
8.2.180.0130.00718.29
8.2.170.0090.00622.96
8.2.160.0110.00322.11
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.94
8.2.110.0140.00420.32
8.2.100.0090.00317.75
8.2.90.0000.00819.22
8.2.80.0030.00518.05
8.2.70.0060.00317.50
8.2.60.0040.00417.78
8.2.50.0000.00818.10
8.2.40.0070.00020.42
8.2.30.0030.00621.04
8.2.20.0000.00817.95
8.2.10.0060.00318.07
8.2.00.0040.00417.93
8.1.280.0090.00625.92
8.1.270.0040.00424.02
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00020.77
8.1.230.0070.00319.07
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0100.00317.35
8.1.190.0000.00817.23
8.1.180.0070.00018.10
8.1.170.0050.00318.58
8.1.160.0040.00418.97
8.1.150.0000.00718.89
8.1.140.0070.00019.59
8.1.130.0040.00418.80
8.1.120.0070.00317.32
8.1.110.0030.00317.40
8.1.100.0040.00417.31
8.1.90.0060.00317.44
8.1.80.0000.00817.46
8.1.70.0000.00717.43
8.1.60.0080.00017.41
8.1.50.0030.00517.39
8.1.40.0040.00417.45
8.1.30.0040.00417.61
8.1.20.0000.00817.55
8.1.10.0000.00817.61
8.1.00.0050.00217.41
8.0.300.0000.00818.77
8.0.290.0050.00216.63
8.0.280.0000.00718.35
8.0.270.0000.00717.07
8.0.260.0000.00616.76
8.0.250.0030.00316.79
8.0.240.0030.00316.67
8.0.230.0060.00316.79
8.0.220.0000.00716.74
8.0.210.0030.00316.73
8.0.200.0070.00016.96
8.0.190.0080.00016.87
8.0.180.0000.00816.86
8.0.170.0030.00316.78
8.0.160.0080.00016.87
8.0.150.0050.00316.67
8.0.140.0030.00316.73
8.0.130.0000.00713.22
8.0.120.0040.00416.89
8.0.110.0040.00416.89
8.0.100.0040.00416.78
8.0.90.0040.00416.69
8.0.80.0080.00816.85
8.0.70.0070.00016.67
8.0.60.0070.00016.72
8.0.50.0070.00016.80
8.0.30.0160.00516.89
8.0.20.0140.00617.40
8.0.10.0000.00716.77
8.0.00.0070.01416.57
7.4.330.0020.00215.55
7.4.320.0060.00016.40
7.4.300.0000.00716.56
7.4.290.0040.00416.54
7.4.280.0000.00816.50
7.4.270.0000.00816.59
7.4.260.0000.00716.52
7.4.250.0040.00416.51
7.4.240.0000.00816.54
7.4.230.0000.00716.34
7.4.220.0090.01216.59
7.4.210.0110.00416.62
7.4.200.0040.00416.52
7.4.160.0090.01116.36
7.4.150.0140.00317.40
7.4.140.0120.00817.86
7.4.130.0130.01216.64
7.4.120.0090.01116.49
7.4.110.0030.01416.49
7.4.100.0150.00916.41
7.4.90.0070.01016.32
7.4.80.0100.00619.39
7.4.70.0100.00716.51
7.4.60.0200.00416.38
7.4.50.0030.00916.31
7.4.40.0060.00916.50
7.4.30.0080.01516.46
7.4.00.0100.00714.80
7.3.330.0030.00313.31
7.3.320.0000.00513.06
7.3.310.0030.00316.44
7.3.300.0000.00716.29
7.3.290.0040.01016.36
7.3.280.0090.00716.31
7.3.270.0030.01617.40
7.3.260.0100.01016.69
7.3.250.0110.00816.46
7.3.240.0080.00916.62
7.3.230.0150.01516.64
7.3.210.0130.00616.24
7.3.200.0080.00816.65
7.3.190.0100.00716.29
7.3.180.0140.00616.30
7.3.170.0090.00616.47
7.3.160.0080.00816.31
7.3.10.0050.00516.54
7.3.00.0040.00816.47
7.2.330.0060.01116.74
7.2.320.0110.00916.74
7.2.310.0100.00716.52
7.2.300.0090.01516.80
7.2.290.0100.01316.43
7.2.130.0030.00916.93
7.2.120.0040.01116.85
7.2.110.0070.00416.83
7.2.100.0060.00616.80
7.2.90.0080.00416.74
7.2.80.0050.00317.00
7.2.70.0060.00916.64
7.2.60.0060.00617.00
7.2.50.0030.00716.78
7.2.40.0000.01016.76
7.2.30.0100.00016.98
7.2.20.0030.00716.93
7.2.10.0000.01316.89
7.2.00.0100.00316.60
7.1.250.0040.00415.57
7.1.200.0120.00815.45
7.1.70.0030.00517.21
7.1.60.0400.01333.42
7.1.50.0670.01732.95
7.1.40.0130.01332.55
7.1.30.0700.01732.67
7.1.20.0470.00732.66
7.1.10.0330.00714.72
7.1.00.0370.00714.78
7.0.200.0330.01014.92
7.0.190.0500.00714.76
7.0.180.0030.00714.36
7.0.170.0370.01014.46
7.0.160.0330.01314.46
7.0.150.0370.00714.45
7.0.140.0270.01314.61
7.0.130.0330.00714.50
7.0.120.0300.01014.64
7.0.110.0300.01014.31
7.0.100.0370.01014.43
7.0.90.0300.01014.40
7.0.80.0730.01014.54
7.0.70.0330.00714.38
7.0.60.0330.00714.27
7.0.50.0330.00714.51
7.0.40.0330.01014.56
7.0.30.0570.00014.71
7.0.20.0330.01014.61
7.0.10.0330.01014.77
7.0.00.0370.01014.63

preferences:
54 ms | 400 KiB | 5 Q