3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hubspot_country = 'United'; $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.0090.00918.31
8.3.50.0090.00616.14
8.3.40.0080.00818.73
8.3.30.0120.00318.86
8.3.20.0040.00420.29
8.3.10.0040.00421.60
8.3.00.0000.00720.94
8.2.180.0040.01118.29
8.2.170.0110.00422.96
8.2.160.0100.00322.16
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00422.08
8.2.120.0080.00026.35
8.2.110.0030.00622.13
8.2.100.0090.00317.76
8.2.90.0080.00019.09
8.2.80.0030.00618.00
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0060.00318.10
8.2.40.0070.00020.40
8.2.30.0000.00821.03
8.2.20.0080.00018.08
8.2.10.0040.00417.88
8.2.00.0070.00018.06
8.1.280.0120.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.83
8.1.230.0040.00722.13
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00717.23
8.1.190.0050.00317.23
8.1.180.0000.00718.10
8.1.170.0000.00818.29
8.1.160.0000.00719.07
8.1.150.0000.00718.80
8.1.140.0070.00019.52
8.1.130.0030.00318.77
8.1.120.0030.00617.42
8.1.110.0040.00417.42
8.1.100.0080.00017.43
8.1.90.0030.00517.42
8.1.80.0060.00317.29
8.1.70.0070.00017.36
8.1.60.0080.00017.59
8.1.50.0030.00617.48
8.1.40.0000.00717.39
8.1.30.0000.00717.49
8.1.20.0050.00317.61
8.1.10.0080.00017.61
8.1.00.0000.00817.53
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0060.00018.41
8.0.270.0000.00717.21
8.0.260.0080.00016.77
8.0.250.0030.00317.00
8.0.240.0000.00716.79
8.0.230.0000.00816.87
8.0.220.0000.00716.77
8.0.210.0000.00716.88
8.0.200.0000.00616.92
8.0.190.0000.00817.01
8.0.180.0040.00416.93
8.0.170.0040.00416.99
8.0.160.0040.00416.86
8.0.150.0070.00016.74
8.0.140.0080.00016.75
8.0.130.0050.00213.24
8.0.120.0080.00016.85
8.0.110.0000.00716.84
8.0.100.0040.00416.87
8.0.90.0050.00216.92
8.0.80.0120.00616.86
8.0.70.0030.00616.89
8.0.60.0040.00416.84
8.0.50.0000.00716.77
8.0.30.0080.01116.97
8.0.20.0110.00717.40
8.0.10.0030.00516.82
8.0.00.0160.00016.96
7.4.330.0000.00515.55
7.4.320.0060.00016.46
7.4.300.0060.00016.49
7.4.290.0080.00316.45
7.4.280.0060.00316.59
7.4.270.0070.00016.47
7.4.260.0000.00716.45
7.4.250.0040.00416.41
7.4.240.0040.00416.42
7.4.230.0000.00716.51
7.4.220.0050.01316.57
7.4.210.0100.01016.57
7.4.200.0030.00316.57
7.4.160.0100.00616.48
7.4.150.0100.00717.40
7.4.140.0090.01017.86
7.4.130.0090.00916.29
7.4.120.0090.01116.49
7.4.110.0060.01016.52
7.4.100.0170.00816.42
7.4.90.0120.00416.39
7.4.80.0090.00919.39
7.4.70.0100.00616.57
7.4.60.0080.00816.38
7.4.50.0040.01516.44
7.4.40.0100.00616.59
7.4.30.0060.01816.42
7.4.10.0090.00914.77
7.4.00.0080.00814.92
7.3.330.0050.00013.07
7.3.320.0050.00013.24
7.3.310.0000.00716.41
7.3.300.0030.00516.37
7.3.290.0080.00816.31
7.3.280.0070.00916.31
7.3.270.0090.00617.40
7.3.260.0130.00816.43
7.3.250.0150.00716.28
7.3.240.0090.00816.50
7.3.230.0030.01716.55
7.3.210.0180.00016.37
7.3.200.0060.00916.29
7.3.190.0050.01116.30
7.3.180.0130.00316.23
7.3.170.0080.00816.29
7.3.160.0100.00916.31
7.3.130.0120.00514.89
7.3.120.0030.01514.60
7.3.110.0070.01314.52
7.3.100.0060.00614.81
7.3.90.0070.00714.80
7.3.80.0050.00514.82
7.3.70.0070.00714.78
7.3.60.0050.00814.73
7.3.50.0030.01314.78
7.3.40.0040.00914.84
7.3.30.0050.00414.81
7.3.20.0060.00516.40
7.3.10.0070.00616.55
7.3.00.0020.01016.56
7.2.330.0060.01216.52
7.2.320.0110.00616.27
7.2.310.0060.01216.69
7.2.300.0070.01016.64
7.2.290.0070.01116.60
7.2.260.0050.01315.06
7.2.250.0070.00915.04
7.2.240.0070.00814.85
7.2.230.0040.01314.86
7.2.220.0050.01014.78
7.2.210.0050.00714.99
7.2.200.0030.00915.02
7.2.190.0070.00714.74
7.2.180.0060.00814.79
7.2.170.0050.01014.84
7.2.160.0050.01014.88
7.2.150.0040.00616.87
7.2.140.0020.01016.86
7.2.130.0080.00416.80
7.2.120.0100.00516.94
7.2.110.0060.00916.73
7.2.100.0040.00816.72
7.2.90.0070.00816.80
7.2.80.0040.01016.76
7.2.70.0060.00816.76
7.2.60.0040.01016.91
7.2.50.0060.00916.96
7.2.40.0040.00916.94
7.2.30.0060.00616.94
7.2.20.0050.00916.83
7.2.10.0010.01116.81
7.2.00.0040.01017.45
7.1.330.0060.00815.96
7.1.320.0060.00815.97
7.1.310.0050.00515.74
7.1.300.0050.00915.83
7.1.290.0020.01115.70
7.1.280.0000.01215.78
7.1.270.0080.00815.46
7.1.260.0080.00315.71
7.1.250.0060.01015.63
7.1.240.0040.00815.72
7.1.230.0040.01015.63
7.1.220.0040.00815.90
7.1.210.0040.00615.54
7.1.200.0040.01215.69
7.1.190.0060.00415.85
7.1.180.0050.01015.73
7.1.170.0000.01415.53
7.1.160.0030.00815.67
7.1.150.0000.01315.69
7.1.140.0070.00715.80
7.1.130.0070.00515.52
7.1.120.0100.00315.83
7.1.110.0030.01015.77
7.1.100.0090.00616.69
7.1.90.0060.00815.79
7.1.80.0030.01015.78
7.1.70.0000.01016.17
7.1.60.0210.00721.61
7.1.50.0290.00521.60
7.1.40.0190.00821.33
7.1.30.0250.00821.46
7.1.20.0300.01221.40
7.1.10.0180.01015.38
7.1.00.0140.01015.42
7.0.330.0090.00515.16
7.0.320.0020.01215.45
7.0.310.0060.00915.46
7.0.300.0060.00615.36
7.0.290.0040.01015.23
7.0.280.0070.00515.26
7.0.270.0050.00815.25
7.0.260.0050.00815.28
7.0.250.0000.01215.42
7.0.240.0060.00615.42
7.0.230.0030.00815.55
7.0.220.0080.00315.41
7.0.210.0020.01315.31
7.0.200.0190.00915.30
7.0.190.0200.00915.10
7.0.180.0270.00915.06
7.0.170.0210.00515.04
7.0.160.0260.01115.05
7.0.150.0140.01015.10
7.0.140.0140.01115.09
7.0.130.0160.00914.96
7.0.120.0140.00915.23
7.0.110.0160.00715.04
7.0.100.0250.00715.04
7.0.90.0160.00915.03
7.0.80.0210.00215.04
7.0.70.0150.00715.13
7.0.60.0190.00714.94
7.0.50.0170.00815.11
7.0.40.0190.00513.83
7.0.30.0140.00813.61
7.0.20.0160.00613.75
7.0.10.0140.01013.70
7.0.00.0130.01213.67
5.6.400.0050.00814.26
5.6.390.0030.01114.38
5.6.380.0070.00714.52
5.6.370.0100.00514.23
5.6.360.0040.00514.25
5.6.350.0040.01014.37
5.6.340.0080.00314.26
5.6.330.0100.00514.67
5.6.320.0030.01014.21
5.6.310.0030.00814.19
5.6.300.0070.00514.59
5.6.290.0020.01214.38
5.6.280.0090.00314.29
5.6.270.0040.00914.30
5.6.260.0060.00814.33
5.6.250.0050.01114.37
5.6.240.0060.00414.30
5.6.230.0020.01114.25
5.6.220.0050.00614.14
5.6.210.0080.00814.35
5.6.200.0060.00614.17
5.6.190.0000.01214.24
5.6.180.0030.00914.34
5.6.170.0100.00414.11
5.6.160.0050.00814.15
5.6.150.0050.00714.38
5.6.140.0020.01014.36
5.6.130.0040.00714.23
5.6.120.0050.00614.23
5.6.110.0020.01014.24
5.6.100.0050.01014.26
5.6.90.0050.00514.37
5.6.80.0070.00514.30
5.6.70.0060.00614.17
5.6.60.0070.00514.29
5.6.50.0070.00714.13
5.6.40.0070.00414.14
5.6.30.0060.00714.19
5.6.20.0080.00514.29
5.6.10.0060.00514.09
5.6.00.0050.00814.27

preferences:
46.48 ms | 401 KiB | 5 Q