3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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.0150.00618.68
8.3.50.0180.00321.27
8.3.40.0040.01118.58
8.3.30.0070.01018.91
8.3.20.0070.00020.34
8.3.10.0040.00422.04
8.3.00.0040.00420.68
8.2.180.0070.01516.37
8.2.170.0110.00422.96
8.2.160.0140.00419.08
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0150.00326.16
8.2.120.0040.00419.50
8.2.110.0030.00522.20
8.2.100.0040.00817.97
8.2.90.0040.00419.11
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0030.00517.90
8.2.50.0000.00818.07
8.2.40.0040.00419.89
8.2.30.0040.00418.09
8.2.20.0040.00417.65
8.2.10.0040.00417.71
8.2.00.0000.00817.82
8.1.280.0120.00825.92
8.1.270.0060.00322.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.98
8.1.230.0090.00319.16
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0100.00017.25
8.1.190.0080.00017.41
8.1.180.0000.00818.74
8.1.170.0000.00818.68
8.1.160.0000.00722.14
8.1.150.0000.00718.66
8.1.140.0040.00417.54
8.1.130.0000.00717.88
8.1.120.0000.00717.52
8.1.110.0000.00717.45
8.1.100.0050.00317.57
8.1.90.0000.00817.56
8.1.80.0000.00717.59
8.1.70.0030.00317.52
8.1.60.0030.00617.72
8.1.50.0000.00717.60
8.1.40.0030.00517.53
8.1.30.0000.00817.70
8.1.20.0030.00517.73
8.1.10.0040.00417.54
8.1.00.0040.00417.58
8.0.300.0040.00418.77
8.0.290.0030.00617.04
8.0.280.0000.00718.33
8.0.270.0000.00717.17
8.0.260.0070.00016.90
8.0.250.0000.00717.03
8.0.240.0040.00416.92
8.0.230.0070.00016.96
8.0.220.0030.00316.95
8.0.210.0030.00316.98
8.0.200.0030.00316.96
8.0.190.0040.00417.02
8.0.180.0000.00817.06
8.0.170.0050.00316.96
8.0.160.0070.00016.95
8.0.150.0070.00016.92
8.0.140.0000.00816.89
8.0.130.0000.00613.41
8.0.120.0000.00816.97
8.0.110.0040.00416.89
8.0.100.0070.00016.84
8.0.90.0000.00717.02
8.0.80.0040.01117.00
8.0.70.0000.00716.79
8.0.60.0040.00417.00
8.0.50.0000.00716.85
8.0.30.0140.00517.25
8.0.20.0060.01217.40
8.0.10.0040.00417.09
8.0.00.0080.01316.73
7.4.330.0030.00315.00
7.4.320.0030.00316.68
7.4.300.0040.00416.75
7.4.290.0000.00716.77
7.4.280.0000.00716.64
7.4.270.0060.00016.69
7.4.260.0030.00316.73
7.4.250.0000.00716.69
7.4.240.0020.00516.61
7.4.230.0070.00016.75
7.4.220.0030.01416.62
7.4.210.0050.01116.66
7.4.200.0070.00016.57
7.4.190.0000.00716.80
7.4.160.0060.01516.57
7.4.150.0150.00717.40
7.4.140.0120.00917.86
7.4.130.0060.01316.63
7.4.120.0030.01416.63
7.4.110.0120.00916.46
7.4.100.0120.00616.82
7.4.90.0140.00516.67
7.4.80.0090.01219.39
7.4.70.0100.01016.76
7.4.60.0100.01016.50
7.4.50.0030.00816.32
7.4.40.0080.00322.77
7.4.30.0030.01216.45
7.4.00.0040.01315.18
7.3.330.0060.00013.12
7.3.320.0000.00512.97
7.3.310.0070.00016.38
7.3.300.0000.00716.30
7.3.290.0060.00916.30
7.3.280.0090.01016.38
7.3.270.0100.00717.40
7.3.260.0140.01116.29
7.3.250.0140.00316.42
7.3.240.0070.01116.29
7.3.230.0080.01116.40
7.3.210.0030.01316.29
7.3.200.0060.01319.39
7.3.190.0090.01216.35
7.3.180.0100.00716.32
7.3.170.0120.00616.70
7.3.160.0060.00916.57
7.3.120.0080.00815.08
7.3.110.0060.00815.06
7.3.100.0110.00514.88
7.3.90.0020.01114.95
7.3.80.0030.01114.75
7.3.70.0080.00314.84
7.3.60.0080.00514.86
7.3.50.0060.00814.73
7.3.40.0040.01214.88
7.3.30.0060.00814.79
7.3.20.0070.00716.57
7.3.10.0100.00716.55
7.3.00.0100.00616.59
7.2.330.0100.00716.50
7.2.320.0120.00716.55
7.2.310.0100.00716.62
7.2.300.0100.00716.70
7.2.290.0110.00516.75
7.2.250.0080.00815.19
7.2.240.0020.01315.08
7.2.230.0070.00815.14
7.2.220.0070.00715.10
7.2.210.0080.00314.96
7.2.200.0050.00714.89
7.2.190.0130.00515.05
7.2.180.0040.01414.87
7.2.170.0110.00614.98
7.2.160.0040.01214.63
7.2.150.0030.01016.63
7.2.140.0040.01216.99
7.2.130.0110.00516.92
7.2.120.0070.00916.70
7.2.110.0090.01016.67
7.2.100.0090.01216.66
7.2.90.0090.00916.96
7.2.80.0100.00916.80
7.2.70.0150.00516.88
7.2.60.0090.01216.61
7.2.50.0070.00916.74
7.2.40.0100.00516.73
7.2.30.0060.01116.67
7.2.20.0100.00716.80
7.2.10.0110.00616.69
7.2.00.0080.00717.82
7.1.330.0050.00915.94
7.1.320.0070.00315.93
7.1.310.0040.00915.99
7.1.300.0020.00615.73
7.1.290.0110.00415.78
7.1.280.0020.01015.89
7.1.270.0040.00815.84
7.1.260.0050.00515.69
7.1.250.0100.00515.65
7.1.100.0170.00418.18
7.1.70.0040.00417.39
7.1.60.0060.01919.82
7.1.50.0080.00617.07
7.1.00.0070.07022.50
7.0.200.0090.00016.89
7.0.140.0030.07322.00
7.0.100.0370.06019.96
7.0.90.0200.04720.13
7.0.80.0200.07720.11
7.0.70.0300.08019.95
7.0.60.0230.08019.94
7.0.50.0230.06720.20
7.0.40.0130.07020.11
7.0.30.0200.05720.18
7.0.20.0070.04719.96
7.0.10.0170.03320.13
7.0.00.0170.08020.03
5.6.250.0130.07020.63
5.6.240.0100.07020.68
5.6.230.0070.08320.61
5.6.220.0130.06320.68
5.6.210.0070.05020.76
5.6.200.0030.05021.14
5.6.190.0130.07321.06
5.6.180.0070.07021.10
5.6.170.0000.04720.97
5.6.160.0070.08021.06
5.6.150.0070.05321.09
5.6.140.0200.06721.04
5.6.130.0100.03721.03
5.6.120.0070.07721.05
5.6.110.0030.04321.06
5.6.100.0070.04020.95
5.6.90.0030.04720.94
5.6.80.0100.03320.44
5.6.70.0030.03320.42
5.6.60.0030.03720.34
5.6.50.0070.03320.43
5.6.40.0000.03720.42
5.6.30.0070.03020.34
5.6.20.0000.04020.46
5.6.10.0030.03320.38
5.6.00.0100.04720.48
5.5.380.0030.06720.42
5.5.370.0070.07020.40
5.5.360.0030.06720.58
5.5.350.0000.08020.48
5.5.340.0070.06320.76
5.5.330.0070.06720.79
5.5.320.0070.08720.92
5.5.310.0100.05020.89
5.5.300.0000.06720.90
5.5.290.0070.05020.90
5.5.280.0130.04320.92
5.5.270.0030.04320.91
5.5.260.0070.05720.93
5.5.250.0030.04320.57
5.5.240.0000.03720.32
5.5.230.0070.03020.28
5.5.220.0030.03320.28
5.5.210.0070.03020.13
5.5.200.0070.04020.30
5.5.190.0030.04020.21
5.5.180.0030.03720.23
5.5.160.0030.03320.29
5.5.150.0070.04020.23
5.5.140.0030.04020.02
5.5.130.0000.04720.20
5.5.120.0270.02720.11
5.5.110.0030.03320.25
5.5.100.0030.04020.19
5.5.90.0030.04020.19
5.5.80.0000.04720.15
5.5.70.0070.03320.03
5.5.60.0070.04020.17
5.5.50.0170.02720.12
5.5.40.0100.03320.08
5.5.30.0000.04320.08
5.5.20.0030.04320.08
5.5.10.0000.04320.12
5.5.00.0030.03320.00
5.4.450.0130.06319.56
5.4.440.0100.07019.37
5.4.430.0070.03719.42
5.4.420.0030.04019.35
5.4.410.0030.04019.00
5.4.400.0070.03719.14
5.4.390.0100.03319.14
5.4.380.0000.03719.05
5.4.370.0000.03318.96
5.4.360.0070.03019.05
5.4.350.0070.03718.90
5.4.340.0030.03319.05
5.4.320.0100.05018.96
5.4.310.0070.03719.04
5.4.300.0070.05018.80
5.4.290.0000.03718.92
5.4.280.0030.04019.04
5.4.270.0030.04318.81
5.4.260.0030.03318.96
5.4.250.0030.04019.14
5.4.240.0030.06318.90
5.4.230.0000.07019.11
5.4.220.0070.03719.11
5.4.210.0000.04019.06
5.4.200.0070.03319.02
5.4.190.0070.03318.88
5.4.180.0030.03719.04
5.4.170.0070.03318.95
5.4.160.0030.04019.02
5.4.150.0070.03719.03
5.4.140.0030.04016.38
5.4.130.0030.05016.38
5.4.120.0070.05716.26
5.4.110.0070.03316.50
5.4.100.0070.06716.46
5.4.90.0000.03716.27
5.4.80.0070.06316.38
5.4.70.0000.08016.45
5.4.60.0030.07316.20
5.4.50.0200.05016.33
5.4.40.0030.06716.29
5.4.30.0100.07016.41
5.4.20.0070.04716.29
5.4.10.0000.06716.33
5.4.00.0030.07315.68
5.3.290.0000.03314.56
5.3.280.0000.03714.49
5.3.270.0000.04014.57
5.3.260.0030.03714.50
5.3.250.0070.03314.50
5.3.240.0100.06714.58
5.3.230.0070.05314.54
5.3.220.0000.07714.44
5.3.210.0130.07014.46
5.3.200.0000.08314.44
5.3.190.0070.06714.46
5.3.180.0030.03714.60
5.3.170.0070.07314.54
5.3.160.0030.05014.54
5.3.150.0030.03714.55
5.3.140.0100.07314.43
5.3.130.0100.07314.58
5.3.120.0030.05714.41
5.3.110.0030.07014.55
5.3.100.0100.06314.00
5.3.90.0030.07014.05
5.3.80.0030.03314.01
5.3.70.0030.08013.91
5.3.60.0100.06014.04
5.3.50.0070.05313.84
5.3.40.0070.06013.74
5.3.30.0100.05713.80
5.3.20.0100.06013.74
5.3.10.0030.07313.46
5.3.00.0100.06313.63
5.2.170.0030.04311.53
5.2.160.0070.03011.53
5.2.150.0100.06011.53
5.2.140.0000.06711.53
5.2.130.0100.05011.53
5.2.120.0030.06711.53
5.2.110.0100.03311.53
5.2.100.0100.04311.53
5.2.90.0030.06011.53
5.2.80.0000.04711.53
5.2.70.0200.04311.53
5.2.60.0100.05311.53
5.2.50.0130.05311.53
5.2.40.0130.02711.53
5.2.30.0000.06311.53
5.2.20.0100.04011.53
5.2.10.0070.05711.53
5.2.00.0070.06011.53
5.1.60.0100.04311.53
5.1.50.0000.05011.53
5.1.40.0030.03311.53
5.1.30.0000.03711.53
5.1.20.0030.05011.53
5.1.10.0070.05311.53
5.1.00.0170.04711.53
5.0.50.0070.04311.53
5.0.40.0030.04311.53
5.0.30.0030.06711.53
5.0.20.0030.04711.53
5.0.10.0030.03011.53
5.0.00.0030.04311.53
4.4.90.0000.03711.53
4.4.80.0000.03711.53
4.4.70.0030.03311.53
4.4.60.0070.03311.53
4.4.50.0000.03711.53
4.4.40.0070.03011.53
4.4.30.0070.03011.53
4.4.20.0070.03011.53
4.4.10.0070.03011.53
4.4.00.0030.05311.53
4.3.110.0030.02011.53
4.3.100.0030.02011.53
4.3.90.0000.03311.53
4.3.80.0100.05011.53
4.3.70.0070.02311.53
4.3.60.0030.02711.53
4.3.50.0030.02311.53
4.3.40.0030.04711.53
4.3.30.0000.03711.53
4.3.20.0030.02011.53
4.3.10.0030.03311.53
4.3.00.0030.03311.53

preferences:
43.38 ms | 401 KiB | 5 Q