3v4l.org

run code in 300+ PHP versions simultaneously
<? $data = array('clientId' => 5, 'userId'=>12); $name_map = array( 'clientId' => 'cid', 'userId' => 'uid', 'eventCategory' => 'ec', 'eventAction' => 'ea', 'eventLabel' => 'el', 'eventValue' => 'ev', 'nonInteraction' => 'ni', 'nonInteractive' => 'ni', 'documentPath' => 'dp', 'documentTitle' => 'dt', 'title' => 'dt', 'path' => 'dp', 'page' => 'dp', 'location' => 'dl', 'documentLocation' => 'dl', 'hostname' => 'dh', 'documentHostname' => 'dh', 'sessionControl' => 'sc', 'referrer' => 'dr', 'documentReferrer' => 'dr', 'queueTime' => 'qt', 'campaignName' => 'cn', 'campaignSource' => 'cs', 'campaignMedium' => 'cm', 'campaignKeyword' => 'ck', 'campaignContent' => 'cc', 'campaignId' => 'ci', 'screenResolution' => 'sr', 'viewportSize' => 'vp', 'documentEncoding' => 'de', 'screenColors' => 'sd', 'userLanguage' => 'ul', 'appName' => 'an', 'contentDescription' => 'cd', 'appVersion' => 'av', 'transactionAffiliation' => 'ta', 'transactionId' => 'ti', 'transactionRevenue' => 'tr', 'transactionShipping' => 'ts', 'transactionTax' => 'tt', 'transactionCurrency' => 'cu', 'itemName' => 'in', 'itemPrice' => 'ip', 'itemQuantity' => 'iq', 'itemCode' => 'ic', 'itemVariation' => 'iv', 'itemCategory' => 'iv', 'socialAction' => 'sa', 'socialNetwork' => 'sn', 'socialTarget' => 'st', 'exceptionDescription' => 'exd', 'exceptionFatal' => 'exf', 'timingCategory' => 'utc', 'timingVariable' => 'utv', 'timingTime' => 'utt', 'timingLabel' => 'utl', 'timingDNS' => 'dns', 'timingPageLoad' => 'pdt', 'timingRedirect' => 'rrt', 'timingTCPConnect' => 'tcp', 'timingServerResponse' => 'srt' ); $name_map_re = array( '@^dimension([0-9]+)$@' => 'cd$1', '@^metric([0-9]+)$@' => 'cm$1' ); $result_keys_in = array_keys($data); $result_keys = str_replace(array_keys($name_map), array_values($name_map), $result_keys_in); $result_keys = preg_replace(array_keys($name_map_re), array_values($name_map_re), $result_keys); var_dump($result_keys);

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.0060.01518.30
8.3.50.0100.01121.09
8.3.40.0070.00718.67
8.3.30.0100.00318.83
8.3.20.0070.00020.22
8.3.10.0040.00422.10
8.3.00.0080.00022.19
8.2.180.0070.00716.63
8.2.170.0130.00722.96
8.2.160.0040.01119.08
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.48
8.2.110.0000.00822.20
8.2.100.0130.00317.66
8.2.90.0000.00719.27
8.2.80.0070.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00717.80
8.2.50.0030.00618.07
8.2.40.0000.00819.73
8.2.30.0070.00017.84
8.2.20.0060.00317.44
8.2.10.0070.00017.45
8.2.00.0030.00517.39
8.1.280.0080.01225.92
8.1.270.0030.00622.19
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00923.64
8.1.230.0030.00719.07
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0030.00617.28
8.1.180.0030.00518.36
8.1.170.0080.00318.34
8.1.160.0030.00721.97
8.1.150.0040.00418.48
8.1.140.0040.00417.17
8.1.130.0000.00717.71
8.1.120.0000.00817.39
8.1.110.0040.00417.34
8.1.100.0050.00217.31
8.1.90.0000.00717.38
8.1.80.0070.00017.22
8.1.70.0000.00717.27
8.1.60.0040.00417.43
8.1.50.0070.00017.40
8.1.40.0000.00717.38
8.1.30.0000.00817.50
8.1.20.0030.00617.51
8.1.10.0040.00417.30
8.1.00.0000.00817.38
8.0.300.0000.00718.77
8.0.290.0070.00017.15
8.0.280.0030.00318.42
8.0.270.0000.00717.18
8.0.260.0030.00316.74
8.0.250.0000.00716.79
8.0.240.0030.00316.78
8.0.230.0030.00316.76
8.0.220.0070.00016.79
8.0.210.0050.00216.64
8.0.200.0060.00016.74
8.0.190.0000.00716.69
8.0.180.0000.00716.63
8.0.170.0000.00816.72
8.0.160.0030.00616.75
8.0.150.0070.00016.67
8.0.140.0040.00416.60
8.0.130.0050.00013.42
8.0.120.0050.00216.72
8.0.110.0000.00816.58
8.0.100.0040.00416.64
8.0.90.0040.00416.58
8.0.80.0150.00616.70
8.0.70.0000.00816.56
8.0.60.0030.00516.79
8.0.50.0020.00516.77
8.0.30.0120.01017.07
8.0.20.0130.00717.40
8.0.10.0030.00516.91
8.0.00.0060.01316.72
7.4.330.0070.00015.00
7.4.320.0000.00616.36
7.4.300.0040.00416.45
7.4.290.0030.00316.48
7.4.280.0000.00716.44
7.4.270.0030.00316.43
7.4.260.0000.00816.34
7.4.250.0000.00716.43
7.4.240.0030.00416.38
7.4.230.0060.00016.20
7.4.220.0090.00916.57
7.4.210.0060.00916.39
7.4.200.0000.00716.56
7.4.190.0000.00716.30
7.4.160.0130.00316.46
7.4.150.0110.00617.40
7.4.140.0130.00617.86
7.4.130.0090.01216.33
7.4.120.0060.01316.41
7.4.110.0120.00816.27
7.4.100.0080.00816.22
7.4.90.0030.01916.45
7.4.80.0060.01219.39
7.4.70.0090.00916.32
7.4.60.0070.00916.50
7.4.50.0040.00416.33
7.4.40.0100.00322.77
7.4.30.0130.00616.48
7.4.00.0100.00814.97
7.3.330.0000.00513.12
7.3.320.0030.00313.02
7.3.310.0050.00316.11
7.3.300.0060.00016.17
7.3.290.0000.01416.16
7.3.280.0100.00816.14
7.3.270.0140.00317.40
7.3.260.0080.01216.24
7.3.250.0100.00716.13
7.3.240.0140.00316.43
7.3.230.0100.00716.39
7.3.210.0130.00316.35
7.3.200.0110.00919.39
7.3.190.0130.00916.12
7.3.180.0040.01216.23
7.3.170.0110.00616.34
7.3.160.0110.00516.39
7.3.120.0030.01314.74
7.3.110.0100.00714.30
7.3.100.0070.00414.73
7.3.90.0060.00614.84
7.3.80.0030.01014.98
7.3.70.0090.00914.64
7.3.60.0070.00414.60
7.3.50.0070.00714.24
7.3.40.0030.01414.32
7.3.30.0050.00514.72
7.3.20.0030.00616.62
7.3.10.0090.00016.70
7.3.00.0070.01016.66
7.2.330.0100.00716.32
7.2.320.0150.00916.62
7.2.310.0060.00616.43
7.2.300.0100.01316.64
7.2.290.0100.00716.48
7.2.250.0100.00715.06
7.2.240.0110.00714.47
7.2.230.0130.00315.09
7.2.220.0070.00715.05
7.2.210.0090.00414.99
7.2.200.0040.01114.90
7.2.190.0050.00514.79
7.2.180.0060.01014.98
7.2.170.0000.00914.88
7.2.00.0030.01319.31
7.1.330.0070.00715.38
7.1.320.0040.01115.58
7.1.310.0030.01015.35
7.1.300.0030.01015.62
7.1.290.0100.00315.61
7.1.280.0080.00815.58
7.1.270.0030.00615.60
7.1.260.0070.00715.43
7.1.100.0000.01218.07
7.1.70.0030.00317.23
7.1.60.0070.01619.82
7.1.50.0070.00317.10
7.1.00.0030.05022.51
7.0.200.0000.01116.77
7.0.140.0100.07022.12
7.0.60.0070.08019.96
7.0.50.0070.05017.68
7.0.40.0100.06720.25
7.0.30.0200.04720.01
7.0.20.0300.07320.23
7.0.10.0330.05019.98
7.0.00.0030.04320.14
5.6.210.0070.08020.71
5.6.200.0030.04018.14
5.6.190.0100.08720.57
5.6.180.3400.04020.61
5.6.170.0030.05320.54
5.6.160.0000.05020.61
5.6.150.0070.08318.12
5.6.140.0030.05718.15
5.6.130.0070.03718.21
5.6.120.0070.05321.04
5.6.110.0070.08321.00
5.6.100.0170.07721.11
5.6.90.0100.07721.00
5.6.80.0100.03720.43
5.6.70.0270.06320.38
5.5.350.0370.06020.49
5.5.340.0100.08018.00
5.5.330.0000.09020.21
5.5.320.0200.08320.14
5.5.310.0130.07320.30
5.5.300.0000.06017.97
5.5.290.0100.08317.96
5.5.280.0070.07320.80
5.5.270.0100.05020.87
5.5.260.0030.04320.82
5.5.250.0200.07020.79
5.5.240.0130.05720.29
5.4.450.4900.03719.25
5.4.440.0130.06719.36
5.4.430.1370.06019.48
5.4.420.4170.04019.25
5.4.410.3800.03019.19
5.4.400.3500.04018.93
5.4.390.3400.03719.26
5.4.380.5030.04319.04
5.4.370.4300.03719.00
5.4.360.3770.04718.87
5.4.350.3870.03319.26
5.4.340.3470.04018.93
5.4.320.4600.04319.17
5.4.310.4800.04719.16
5.4.300.3900.03318.87
5.4.290.4130.03019.26
5.4.280.0230.06319.15
5.4.270.1770.03719.13
5.4.260.2030.04019.17
5.4.250.2830.03719.15
5.4.240.3370.03719.09
5.4.230.2070.02318.86
5.4.220.2300.02719.07
5.4.210.2700.03719.15
5.4.200.2430.03718.88
5.4.190.2430.03719.25
5.4.180.3730.03019.15
5.4.170.3900.03719.17
5.4.160.0000.08319.06
5.4.150.2570.04719.08
5.4.140.4170.03016.45
5.4.130.3470.03716.44
5.4.120.4100.03316.27
5.4.110.4600.04016.47
5.4.100.3400.04016.20
5.4.90.4470.02716.54
5.4.80.4700.03316.40
5.4.70.4800.03316.50
5.4.60.4830.03716.39
5.4.50.4630.03716.15
5.4.40.3870.04016.30
5.4.30.3570.03716.43
5.4.20.3600.03716.38
5.4.10.2930.05716.47
5.4.00.4400.03715.66
5.3.290.5730.04314.60
5.3.280.2330.03714.41
5.3.270.3830.03314.53
5.3.260.0070.07314.48
5.3.250.3370.04014.52
5.3.240.4130.03714.54
5.3.230.4000.03714.49
5.3.220.4700.04014.65
5.3.210.3930.04014.45
5.3.200.4300.03314.64
5.3.190.4600.03714.46
5.3.180.4500.03714.48
5.3.170.6100.03714.51
5.3.160.4330.03714.45
5.3.150.4770.03314.38
5.3.140.4470.03314.47
5.3.130.4100.03014.48
5.3.120.3700.03714.46
5.3.110.3570.04314.44
5.3.100.4030.03013.82
5.3.90.3770.03713.91
5.3.80.4070.04013.96
5.3.70.4030.04013.97
5.3.60.3830.03313.93
5.3.50.3730.04013.92
5.3.40.3630.02713.90
5.3.30.4370.03713.88
5.3.20.4270.04013.63
5.3.10.4670.03313.59
5.3.00.4500.03313.65
5.2.170.3670.02711.08
5.2.160.3170.02311.11
5.2.150.3970.02311.00
5.2.140.3900.03011.06
5.2.130.4100.03011.01
5.2.120.4030.02711.11
5.2.110.4070.03011.03
5.2.100.4470.02711.25
5.2.90.3970.02711.18
5.2.80.3630.03011.02
5.2.70.4170.03011.02
5.2.60.3430.03310.95
5.2.50.4170.03310.95
5.2.40.3330.03010.98
5.2.30.3200.03010.82
5.2.20.2930.03010.90
5.2.10.2730.02710.88
5.2.00.3200.03310.70
5.1.60.3100.0309.90
5.1.50.2670.0279.97
5.1.40.2570.0179.88
5.1.30.2330.02310.48
5.1.20.2500.02310.35
5.1.10.3270.0239.97
5.1.00.3330.03010.11
5.0.50.1600.0238.58
5.0.40.1530.0208.38
5.0.30.0970.0338.17
5.0.20.1630.0238.10
5.0.10.1670.0238.23
5.0.00.1700.0308.18
4.4.90.1830.0175.83
4.4.80.1270.0205.75
4.4.70.1570.0135.87
4.4.60.1270.0175.82
4.4.50.1430.0135.77
4.4.40.1700.0275.77
4.4.30.1230.0135.82
4.4.20.1930.0205.85
4.4.10.1570.0135.84
4.4.00.1230.0275.91
4.3.110.1400.0135.80
4.3.100.1530.0175.72
4.3.90.1530.0105.71
4.3.80.1900.0235.79
4.3.70.1470.0175.78
4.3.60.1730.0205.70
4.3.50.1530.0135.71
4.3.40.1470.0235.79
4.3.30.1030.0234.87
4.3.20.0770.0204.87
4.3.10.0800.0404.87
4.3.00.1130.0204.87

preferences:
44.9 ms | 401 KiB | 5 Q