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.0110.00418.18
8.3.50.0120.00621.14
8.3.40.0080.00818.72
8.3.30.0100.01019.14
8.3.20.0070.00020.25
8.3.10.0040.00421.95
8.3.00.0080.00022.35
8.2.180.0120.00616.38
8.2.170.0070.01422.96
8.2.160.0070.01019.22
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.23
8.2.110.0040.00422.18
8.2.100.0060.00919.52
8.2.90.0080.00018.81
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0000.00817.90
8.2.50.0000.01318.07
8.2.40.0000.00819.95
8.2.30.0040.00417.91
8.2.20.0000.00717.58
8.2.10.0080.00017.74
8.2.00.0030.00617.73
8.1.280.0150.00325.92
8.1.270.0040.00421.98
8.1.260.0040.00426.35
8.1.250.0180.00028.09
8.1.240.0060.00323.58
8.1.230.0110.00019.04
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0040.00417.40
8.1.180.0000.00818.57
8.1.170.0030.00618.32
8.1.160.0000.00722.00
8.1.150.0050.00218.48
8.1.140.0080.00017.37
8.1.130.0030.00317.86
8.1.120.0070.00017.37
8.1.110.0000.00717.38
8.1.100.0050.00217.28
8.1.90.0000.00717.38
8.1.80.0000.00717.30
8.1.70.0050.00217.40
8.1.60.0000.00817.39
8.1.50.0040.00417.48
8.1.40.0000.00817.50
8.1.30.0050.00317.49
8.1.20.0000.00817.51
8.1.10.0030.00617.38
8.1.00.0030.00617.32
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0070.00018.29
8.0.270.0030.00317.18
8.0.260.0040.00416.75
8.0.250.0070.00016.91
8.0.240.0040.00416.78
8.0.230.0040.00416.81
8.0.220.0030.00316.81
8.0.210.0030.00316.77
8.0.200.0030.00316.87
8.0.190.0050.00316.93
8.0.180.0040.00416.86
8.0.170.0000.00716.76
8.0.160.0000.00916.70
8.0.150.0000.00716.66
8.0.140.0040.00416.80
8.0.130.0050.00013.20
8.0.120.0040.00416.79
8.0.110.0040.00416.79
8.0.100.0050.00216.85
8.0.90.0090.00016.82
8.0.80.0110.00716.78
8.0.70.0000.00716.65
8.0.60.0000.00816.81
8.0.50.0040.00416.85
8.0.30.0110.00816.90
8.0.20.0150.00317.40
8.0.10.0040.00416.91
8.0.00.0080.01316.69
7.4.330.0030.00315.00
7.4.320.0030.00316.45
7.4.300.0030.00316.52
7.4.290.0030.00316.52
7.4.280.0000.00716.37
7.4.270.0060.00016.40
7.4.260.0040.00416.42
7.4.250.0000.00716.43
7.4.240.0030.00316.45
7.4.230.0040.00416.51
7.4.220.0040.01516.62
7.4.210.0070.01016.54
7.4.200.0040.00416.43
7.4.190.0050.00316.48
7.4.160.0060.00916.29
7.4.150.0100.00717.40
7.4.140.0080.00917.86
7.4.130.0140.00616.41
7.4.120.0150.00516.36
7.4.110.0130.00816.65
7.4.100.0080.01216.41
7.4.90.0100.00716.41
7.4.80.0070.01019.39
7.4.70.0080.00916.31
7.4.60.0030.01316.41
7.4.50.0050.00316.41
7.4.40.0030.01022.77
7.4.30.0100.00716.31
7.4.10.0070.01015.07
7.4.00.0090.00614.71
7.3.330.0030.00313.06
7.3.320.0000.00612.87
7.3.310.0050.00216.18
7.3.300.0070.00016.13
7.3.290.0060.01316.17
7.3.280.0090.01016.14
7.3.270.0120.00617.40
7.3.260.0120.00816.24
7.3.250.0120.00516.24
7.3.240.0190.00616.16
7.3.230.0210.00016.39
7.3.210.0170.00016.41
7.3.200.0170.00019.39
7.3.190.0100.00716.54
7.3.180.0100.00616.57
7.3.170.0000.01816.29
7.3.160.0130.00316.65
7.3.130.0040.01514.68
7.3.120.0070.01014.62
7.3.110.0030.01514.82
7.3.100.0030.00914.98
7.3.90.0040.00414.65
7.3.80.0040.00814.54
7.3.70.0030.00914.71
7.3.60.0060.00614.75
7.3.50.0030.00914.84
7.3.40.0030.01014.41
7.3.30.0030.01014.55
7.3.20.0040.01116.66
7.3.10.0090.00016.58
7.3.00.0030.01216.68
7.2.330.0130.00616.52
7.2.320.0180.00616.24
7.2.310.0090.00916.32
7.2.300.0070.01016.41
7.2.290.0100.00616.32
7.2.260.0090.00915.05
7.2.250.0130.00714.66
7.2.240.0030.00614.89
7.2.230.0080.00514.83
7.2.220.0070.00715.08
7.2.210.0040.00715.08
7.2.200.0060.00614.95
7.2.190.0000.01214.80
7.2.180.0040.00915.09
7.2.170.0040.01115.01
7.2.160.0000.01014.81
7.2.150.0110.00716.98
7.2.140.0040.00716.93
7.2.130.0030.01316.74
7.2.120.0040.00816.82
7.2.110.0120.00316.69
7.2.100.0090.00916.81
7.2.90.0070.00416.86
7.2.80.0110.00416.97
7.2.70.0000.01316.75
7.2.60.0110.00016.79
7.2.50.0100.00716.79
7.2.40.0040.00716.66
7.2.30.0040.00716.95
7.2.20.0070.00716.99
7.2.10.0000.01316.80
7.2.00.0050.00918.01
7.1.330.0060.00915.47
7.1.320.0030.00715.69
7.1.310.0080.00415.72
7.1.300.0030.00915.45
7.1.290.0000.01415.61
7.1.280.0100.00315.31
7.1.270.0030.00815.54
7.1.260.0110.00415.81
7.1.250.0030.01315.80
7.1.240.0060.00915.73
7.1.230.0040.01115.67
7.1.220.0000.01115.71
7.1.210.0040.01415.58
7.1.200.0030.01015.45
7.1.190.0030.00815.80
7.1.180.0060.00915.85
7.1.170.0120.00315.87
7.1.160.0100.00315.79
7.1.150.0060.00615.71
7.1.140.0060.00615.45
7.1.130.0080.00815.67
7.1.120.0060.00315.55
7.1.110.0030.00615.84
7.1.100.0030.01315.69
7.1.90.0040.00415.62
7.1.80.0100.00315.57
7.1.70.0050.00516.45
7.1.60.0070.00416.18
7.1.50.0060.01016.30
7.1.40.0000.01115.41
7.1.30.0000.01515.79
7.1.20.0070.00715.52
7.1.10.0040.00415.71
7.1.00.0030.02318.98
7.0.330.0080.00815.58
7.0.320.0070.00715.14
7.0.310.0080.00315.31
7.0.300.0030.00615.50
7.0.290.0030.01015.27
7.0.280.0030.00615.23
7.0.270.0000.01315.36
7.0.260.0050.00515.29
7.0.250.0030.01015.21
7.0.240.0100.00315.55
7.0.230.0030.00915.27
7.0.220.0040.01115.32
7.0.210.0070.00715.56
7.0.200.0060.00415.97
7.0.190.0080.00415.18
7.0.180.0030.01015.45
7.0.170.0080.00415.35
7.0.160.0030.00715.39
7.0.150.0060.00615.35
7.0.140.0020.04318.65
7.0.130.0070.00715.30
7.0.120.0030.00915.36
7.0.110.0060.00915.17
7.0.100.0040.00415.01
7.0.90.0070.00715.29
7.0.80.0040.00815.23
7.0.70.0080.00015.52
7.0.60.0030.02417.59
7.0.50.0020.03316.51
7.0.40.0080.03516.83
7.0.30.0080.03216.79
7.0.20.0200.02816.68
7.0.10.0130.02616.72
7.0.00.0060.04616.60
5.6.400.0040.01114.29
5.6.390.0030.01314.41
5.6.380.0030.00614.30
5.6.370.0070.00414.13
5.6.360.0040.00814.41
5.6.350.0090.00614.14
5.6.340.0000.01114.05
5.6.330.0090.00014.24
5.6.320.0060.00614.51
5.6.310.0060.00314.36
5.6.300.0090.00314.32
5.6.290.0060.00614.27
5.6.280.0060.00313.98
5.6.270.0060.00614.23
5.6.260.0070.00314.13
5.6.250.0060.00314.34
5.6.240.0030.00914.34
5.6.230.0100.00414.22
5.6.220.0090.00614.34
5.6.210.0110.03917.62
5.6.200.0100.02716.16
5.6.190.0040.02617.38
5.6.180.1630.02817.37
5.6.170.0210.04217.39
5.6.160.0020.03217.36
5.6.150.0070.04116.10
5.6.140.0040.02216.26
5.6.130.0130.02016.16
5.6.120.0050.04317.66
5.6.110.0130.03617.76
5.6.100.0090.03917.67
5.6.90.0060.03517.66
5.6.80.0120.03117.27
5.6.70.0220.03517.46
5.6.60.0030.01014.01
5.6.50.0030.00714.16
5.6.40.0070.01114.15
5.6.30.0070.00714.00
5.6.20.0060.00814.04
5.6.10.0070.00714.23
5.6.00.0060.00614.13
5.5.380.0070.00714.02
5.5.370.0030.01313.88
5.5.360.0000.00914.15
5.5.350.0090.02717.28
5.5.340.0030.02616.16
5.5.330.0070.04217.26
5.5.320.0170.03517.19
5.5.310.0160.02917.17
5.5.300.0050.02216.19
5.5.290.0050.05016.25
5.5.280.0120.01817.54
5.5.270.0100.01717.46
5.5.260.0080.04017.62
5.5.250.0070.04317.44
5.5.240.0080.03217.32
5.5.230.0040.00713.95
5.5.220.0100.00314.13
5.5.210.0060.00614.31
5.5.200.0070.01114.30
5.5.190.0040.01113.85
5.5.180.0070.00714.25
5.5.170.0060.00614.29
5.5.160.0000.00914.11
5.5.150.0080.00414.22
5.5.140.0030.01014.20
5.5.130.0030.00613.98
5.5.120.0060.00914.38
5.5.110.0120.00313.82
5.5.100.0030.00714.19
5.5.90.0040.01114.21
5.5.80.0070.00714.03
5.5.70.0080.00414.12
5.5.60.0030.01414.11
5.5.50.0040.01114.24
5.5.40.0060.00614.13
5.5.30.0030.01313.91
5.5.20.0120.00314.29
5.5.10.0060.00914.11
5.5.00.0060.00313.83
5.4.450.0330.03515.55
5.4.440.0380.02815.65
5.4.430.0170.02815.64
5.4.420.0370.02315.53
5.4.410.0370.03615.46
5.4.400.0250.03815.29
5.4.390.0270.02815.17
5.4.380.0520.04315.27
5.4.370.0100.03015.17
5.4.360.0070.03015.26
5.4.350.0140.02515.21
5.4.340.0070.03015.28
5.4.330.0000.00711.81
5.4.320.0030.02312.17
5.4.310.0040.02412.17
5.4.300.0010.02612.17
5.4.290.0040.02412.17
5.4.280.0050.02112.12
5.4.270.0060.02212.12
5.4.260.0110.02615.36
5.4.250.0050.03215.34
5.4.240.0070.04515.23
5.4.230.0030.03015.35
5.4.220.0080.03915.31
5.4.210.0050.03015.27
5.4.200.0050.04115.37
5.4.190.0030.04615.41
5.4.180.0080.03115.37
5.4.170.0070.03115.27
5.4.160.0120.02515.37
5.4.150.0080.04215.35
5.4.140.0090.02514.07
5.4.130.0060.03614.02
5.4.120.0070.02814.13
5.4.110.0130.02514.15
5.4.100.0120.03214.15
5.4.90.0060.03814.06
5.4.80.0020.03114.15
5.4.70.0110.02514.07
5.4.60.0050.04014.02
5.4.50.0070.02514.12
5.4.40.0060.02814.17
5.4.30.0050.03914.13
5.4.20.0070.03414.02
5.4.10.0030.03314.13
5.4.00.0060.02913.75
5.3.290.0040.02512.31
5.3.280.0050.03013.07
5.3.270.0110.03313.25
5.3.260.0080.02813.25
5.3.250.0040.03513.11
5.3.240.0030.03113.24
5.3.230.0080.02813.24
5.3.220.0060.03813.21
5.3.210.0070.03013.21
5.3.200.0030.03213.22
5.3.190.0100.02813.23
5.3.180.0020.04213.21
5.3.170.0080.03813.21
5.3.160.0080.03713.21
5.3.150.0050.04213.13
5.3.140.0120.02213.13
5.3.130.0050.03013.22
5.3.120.0070.03613.08
5.3.110.0110.03613.24
5.3.100.0030.03112.94
5.3.90.0070.02912.89
5.3.80.0040.03012.90
5.3.70.0060.03712.78
5.3.60.0080.02512.93
5.3.50.0060.02512.82
5.3.40.0100.02312.79
5.3.30.0020.03112.93
5.3.20.0030.02812.65
5.3.10.0050.02612.76
5.3.00.0070.02912.66
5.2.170.0070.04311.27
5.2.160.0100.03711.19
5.2.150.0100.03711.07
5.2.140.0000.05011.02
5.2.130.0070.04011.04
5.2.120.0070.03711.16
5.2.110.0000.04711.15
5.2.100.0070.03710.89
5.2.90.0070.04011.14
5.2.80.0070.06011.06
5.2.70.0070.05011.14
5.2.60.0000.04711.11
5.2.50.0030.04711.07
5.2.40.0000.04311.03
5.2.30.0030.06010.84
5.2.20.0030.04011.14
5.2.10.0100.03311.11
5.2.00.0100.05310.75
5.1.60.0000.05710.08
5.1.50.0000.0509.80
5.1.40.0030.0379.88
5.1.30.0130.04010.31
5.1.20.0100.03310.23
5.1.10.0030.03710.03
5.1.00.0100.04310.15
5.0.50.0030.0308.66
5.0.40.0070.0378.49
5.0.30.0070.0538.23
5.0.20.0070.0278.46
5.0.10.0070.0278.45
5.0.00.0070.0408.26
4.4.90.0000.0237.26
4.4.80.0000.0237.26
4.4.70.0030.0307.26
4.4.60.0070.0277.26
4.4.50.0000.0237.26
4.4.40.0030.0337.26
4.4.30.0000.0237.26
4.4.20.0000.0237.26
4.4.10.0070.0237.26
4.4.00.0170.0307.26
4.3.110.0100.0177.26
4.3.100.0030.0307.26
4.3.90.0030.0307.26
4.3.80.0070.0407.26
4.3.70.0030.0237.26
4.3.60.0000.0337.26
4.3.50.0030.0207.26
4.3.40.0030.0437.26
4.3.30.0030.0207.26
4.3.20.0000.0337.26
4.3.10.0000.0307.26
4.3.00.0170.0177.94

preferences:
45.27 ms | 401 KiB | 5 Q