3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0" encoding="utf-8"?> <createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">   <refId>123456</refId>   <messages>     <resultCode>Ok</resultCode>     <message>       <code>I00001</code>       <text>Successful.</text>     </message>   </messages>   <transactionResponse>     <responseCode>1</responseCode>     <authCode>UGELQC</authCode>     <avsResultCode>E</avsResultCode>     <cavvResultCode />     <transId>2148061808</transId>     <refTransID />     <transHash>0B428D8A928AAC61121AF2F6EAC5FF3F</transHash>     <testRequest>0</testRequest>     <accountNumber>XXXX0015</accountNumber>     <accountType>MasterCard</accountType>     <message>       <code>1</code>       <description>This transaction has been approved.</description>     </message>     <userFields>       <userField>         <name>MerchantDefinedFieldName1</name>         <value>MerchantDefinedFieldValue1</value>       </userField>       <userField>         <name>favorite_color</name>         <value>lavender</value>       </userField>     </userFields>   </transactionResponse> </createTransactionResponse> XML; $dom = new DOMDocument(); libxml_use_internal_errors(true); $dom->loadXML($xml); libxml_clear_errors(); libxml_use_internal_errors(false); $query = '/createTransactionResponse/messages/resultCode[1]/text()'; $xpath = new DOMXpath($dom); #$xpath->registerNamespace('m', 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'); var_dump($xpath->query($query)->length);

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.01118.88
8.3.50.0070.00823.16
8.3.40.0100.01019.17
8.3.30.0110.00719.29
8.3.20.0050.00220.64
8.3.10.0040.00424.10
8.3.00.0030.00619.26
8.2.180.0040.01116.88
8.2.170.0160.00322.96
8.2.160.0140.00420.91
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.01026.16
8.2.120.0040.00421.42
8.2.110.0090.00022.75
8.2.100.0040.00818.16
8.2.90.0030.00619.90
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0000.00818.41
8.2.50.0050.00318.07
8.2.40.0040.00418.47
8.2.30.0040.00418.47
8.2.20.0030.00518.18
8.2.10.0060.00318.43
8.2.00.0040.00418.14
8.1.280.0070.01425.92
8.1.270.0040.00424.17
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0060.00324.33
8.1.230.0060.00619.66
8.1.220.0060.00318.05
8.1.210.0000.01018.77
8.1.200.0040.00417.86
8.1.190.0000.00817.38
8.1.180.0040.00418.10
8.1.170.0040.00419.09
8.1.160.0040.00422.40
8.1.150.0050.00319.36
8.1.140.0000.00817.65
8.1.130.0030.00318.20
8.1.120.0000.00817.69
8.1.110.0060.00317.88
8.1.100.0040.00417.84
8.1.90.0030.00317.54
8.1.80.0000.00717.73
8.1.70.0000.00717.82
8.1.60.0050.00317.74
8.1.50.0000.00817.65
8.1.40.0000.00817.66
8.1.30.0040.00418.05
8.1.20.0000.00717.84
8.1.10.0030.00617.93
8.1.00.0040.00417.98
8.0.300.0040.00421.02
8.0.290.0070.00016.88
8.0.280.0000.00718.77
8.0.270.0000.00717.68
8.0.260.0080.00017.63
8.0.250.0070.00017.20
8.0.240.0030.00317.38
8.0.230.0000.00717.21
8.0.220.0070.00017.41
8.0.210.0000.00717.10
8.0.200.0040.00417.25
8.0.190.0080.00017.22
8.0.180.0030.00517.31
8.0.170.0040.00417.43
8.0.160.0000.00717.42
8.0.150.0000.00817.14
8.0.140.0040.00417.34
8.0.130.0040.00413.78
8.0.120.0040.00417.30
8.0.110.0080.00017.20
8.0.100.0030.00517.23
8.0.90.0000.00717.25
8.0.80.0150.00317.30
8.0.70.0050.00217.17
8.0.60.0040.00417.14
8.0.50.0040.00417.27
8.0.30.0140.01017.34
8.0.20.0100.00817.40
8.0.10.0070.00017.25
8.0.00.0100.00917.07
7.4.330.0030.00315.00
7.4.320.0030.00517.03
7.4.300.0030.00316.78
7.4.290.0030.00317.04
7.4.280.0000.00716.88
7.4.270.0040.00317.06
7.4.260.0050.00316.91
7.4.250.0050.00316.89
7.4.240.0010.00617.03
7.4.230.0040.00416.80
7.4.220.0180.00916.98
7.4.210.0040.01116.91
7.4.200.0000.00816.72
7.4.160.0080.00816.87
7.4.150.0060.01217.40
7.4.140.0100.00817.86
7.4.130.0130.00916.88
7.4.120.0090.01116.88
7.4.110.0090.01016.78
7.4.100.0090.00916.98
7.4.90.0170.00416.87
7.4.80.0040.01419.39
7.4.70.0110.01116.83
7.4.60.0140.00316.84
7.4.50.0040.00416.77
7.4.40.0070.00716.64
7.4.30.0100.00616.74
7.4.10.0050.01015.06
7.4.00.0070.01015.10
7.3.330.0030.00313.35
7.3.320.0020.00213.52
7.3.310.0000.00716.65
7.3.300.0030.00316.48
7.3.290.0090.00616.60
7.3.280.0070.01016.56
7.3.270.0070.01117.40
7.3.260.0130.00316.53
7.3.240.0130.00316.59
7.3.230.0090.00916.54
7.3.210.0170.00316.57
7.3.200.0060.00919.39
7.3.190.0040.01516.79
7.3.180.0090.00916.87
7.3.170.0110.00716.71
7.3.160.0030.01316.68
7.3.130.0050.01314.81
7.3.120.0080.00815.07
7.3.110.0110.00714.92
7.3.100.0090.00514.71
7.3.90.0050.01014.94
7.3.80.0080.00814.93
7.3.70.0050.00914.90
7.3.60.0030.00914.90
7.3.50.0030.01014.75
7.3.40.0060.00714.78
7.3.30.0050.00814.86
7.3.20.0070.00716.69
7.3.10.0120.00116.66
7.3.00.0060.00516.64
7.2.330.0070.01017.15
7.2.320.0000.02217.00
7.2.310.0100.01316.62
7.2.300.0050.01116.48
7.2.290.0060.00916.63
7.2.260.0040.01515.24
7.2.250.0050.01215.22
7.2.240.0020.01415.08
7.2.230.0050.01315.13
7.2.220.0040.01015.35
7.2.210.0070.00915.13
7.2.200.0050.01015.13
7.2.190.0040.01215.15
7.2.180.0070.00915.15
7.2.170.0050.00915.13
7.2.160.0030.00815.04
7.2.150.0080.00416.89
7.2.140.0070.00616.89
7.2.130.0060.00916.95
7.2.120.0030.01116.94
7.2.110.0030.00816.90
7.2.100.0050.01017.08
7.2.90.0040.01116.93
7.2.80.0080.00916.98
7.2.70.0050.00716.92
7.2.60.0040.01116.96
7.2.50.0050.00816.84
7.2.40.0080.00416.88
7.2.30.0050.00916.99
7.2.20.0040.01017.06
7.2.10.0030.00816.94
7.2.00.0040.00617.86
7.1.330.0090.00615.94
7.1.320.0070.00915.90
7.1.310.0070.00815.95
7.1.300.0020.00915.76
7.1.290.0120.00315.80
7.1.280.0030.00815.81
7.1.270.0100.00315.73
7.1.260.0100.00515.85
7.1.250.0030.00915.90
7.1.240.0060.00815.84
7.1.230.0050.00515.94
7.1.220.0060.00815.86
7.1.210.0050.01015.75
7.1.200.0100.00515.81
7.1.190.0060.00715.81
7.1.180.0060.00615.80
7.1.170.0030.01015.78
7.1.160.0040.00815.74
7.1.150.0020.01315.80
7.1.140.0050.00515.77
7.1.130.0040.00615.86
7.1.120.0050.00515.83
7.1.110.0050.00515.87
7.1.100.0070.00816.58
7.1.90.0070.00315.95
7.1.80.0020.01115.78
7.1.70.0050.00816.49
7.1.60.0030.01317.00
7.1.50.0070.01116.27
7.1.40.0060.00415.86
7.1.30.0070.00915.91
7.1.20.0030.01015.85
7.1.10.0090.00515.85
7.1.00.0030.03118.13
7.0.330.0050.00715.30
7.0.320.0030.01015.28
7.0.310.0060.00615.38
7.0.300.0060.00615.41
7.0.290.0060.00915.34
7.0.280.0020.00715.56
7.0.270.0050.00715.43
7.0.260.0050.00715.49
7.0.250.0060.00715.48
7.0.240.0070.00715.56
7.0.230.0070.00315.54
7.0.220.0060.00715.57
7.0.210.0060.00515.57
7.0.200.0020.00915.82
7.0.190.0050.00915.54
7.0.180.0020.00915.50
7.0.170.0050.01115.53
7.0.160.0070.00515.60
7.0.150.0050.00715.44
7.0.140.0090.02617.71
7.0.130.0060.00315.57
7.0.120.0030.00715.73
7.0.110.0030.01015.65
7.0.100.0070.00415.35
7.0.90.0030.01215.48
7.0.80.0020.01115.50
7.0.70.0030.01015.37
7.0.60.0100.03117.15
7.0.50.0060.01916.45
7.0.40.0100.03215.82
7.0.30.0100.02815.77
7.0.20.0150.02315.77
7.0.10.0090.02015.77
7.0.00.0040.01815.68
5.6.400.0090.00414.82
5.6.390.0070.00714.53
5.6.380.0030.01114.32
5.6.370.0020.01014.44
5.6.360.0040.00614.47
5.6.350.0030.00714.62
5.6.340.0020.01414.50
5.6.330.0030.01014.39
5.6.320.0060.00814.68
5.6.310.0060.00614.69
5.6.300.0060.00814.30
5.6.290.0070.00714.56
5.6.280.0060.02716.61
5.6.270.0060.00814.54
5.6.260.0020.01214.33
5.6.250.0080.00714.45
5.6.240.0070.00514.58
5.6.230.0020.01014.62
5.6.220.0050.00814.31
5.6.210.0060.02816.70
5.6.200.0100.02415.90
5.6.190.0060.03316.39
5.6.180.1190.02116.58
5.6.170.0110.02516.38
5.6.160.0110.01816.51
5.6.150.0120.02915.73
5.6.140.0040.02715.75
5.6.130.0070.03115.75
5.6.120.0040.02216.62
5.6.110.0080.02416.79
5.6.100.0030.02816.59
5.6.90.0080.02916.65
5.6.80.0070.02516.58
5.6.70.1510.01616.40
5.6.60.0010.01114.29
5.6.50.0070.00414.39
5.6.40.0080.00414.31
5.6.30.0060.00714.28
5.6.20.0050.00714.41
5.6.10.0020.01214.36
5.6.00.0090.00714.43
5.5.380.0000.01414.35
5.5.370.0020.00914.48
5.5.360.0050.00714.42
5.5.350.0120.02716.58
5.5.340.0080.02415.54
5.5.330.0050.01816.48
5.5.320.0200.02816.42
5.5.310.0090.01816.27
5.5.300.0040.02015.63
5.5.290.0040.01915.52
5.5.280.0080.03116.68
5.5.270.0050.01916.53
5.5.260.0060.03216.65
5.5.250.0070.02716.50
5.5.240.0150.02716.40
5.5.230.0070.00714.42
5.5.220.0050.00314.27
5.5.210.0080.00514.40
5.5.200.0080.00514.27
5.5.190.0030.00914.44
5.5.180.0030.00914.29
5.5.170.0070.00214.14
5.5.160.0040.01114.33
5.5.150.0050.00814.37
5.5.140.0020.01114.32
5.5.130.0060.00614.46
5.5.120.0050.00814.33
5.5.110.0030.01014.12
5.5.100.0050.00914.25
5.5.90.0060.01014.49
5.5.80.0070.00814.46
5.5.70.0030.00714.18
5.5.60.0020.01214.39
5.5.50.0070.01013.97
5.5.40.0050.00814.32
5.5.30.0090.00514.22
5.5.20.0040.00814.25
5.5.10.0060.00814.28
5.5.00.0020.01014.44
5.4.450.0130.02513.93
5.4.440.0140.01613.90
5.4.430.0130.02713.92
5.4.420.0110.02813.98
5.4.410.0110.02113.93
5.4.400.0110.01713.77
5.4.390.0090.01713.70
5.4.380.0080.01913.88
5.4.370.0100.01513.85
5.4.360.0100.01413.78
5.4.350.0060.02013.93
5.4.340.0100.01413.79
5.4.330.0060.00311.03
5.4.320.0060.02613.78
5.4.310.0170.01613.79
5.4.300.0100.01513.86
5.4.290.0100.01613.74
5.4.280.0090.01613.67
5.4.270.0090.01413.73
5.4.260.0110.01613.84
5.4.250.0100.01413.80
5.4.240.0110.01513.74
5.4.230.0110.01913.93
5.4.220.0090.01613.79
5.4.210.0100.01813.98
5.4.200.0110.01413.69
5.4.190.0100.02413.69
5.4.180.0100.01813.82
5.4.170.0110.02613.72
5.4.160.0090.02613.82
5.4.150.0120.02613.92
5.4.140.0160.01812.94
5.4.130.0090.02912.92
5.4.120.0080.01812.86
5.4.110.0100.02212.97
5.4.100.0130.01913.04
5.4.90.0150.02512.97
5.4.80.0140.02312.96
5.4.70.0140.01812.98
5.4.60.0130.02412.93
5.4.50.0130.02912.86
5.4.40.0120.02912.99
5.4.30.0140.02713.02
5.4.20.0100.02512.98
5.4.10.0110.02512.91
5.4.00.0110.02112.70
5.3.290.0200.03714.94
5.3.280.0130.04014.73
5.3.270.0270.07714.72
5.3.260.0370.06714.92
5.3.250.0300.07714.79
5.3.240.0300.07014.84
5.3.230.0200.04314.75
5.3.220.0230.05014.67
5.3.210.0300.06714.71
5.3.200.0270.03714.69
5.3.190.0330.05314.76
5.3.180.0300.03714.88
5.3.170.0270.06314.66
5.3.160.0400.05714.69
5.3.150.0300.06314.79
5.3.140.0270.06314.69
5.3.130.0300.06314.65
5.3.120.0270.03314.69
5.3.110.0270.07314.80
5.3.100.0170.04714.29
5.3.90.0200.04314.25
5.3.80.0230.03714.19
5.3.70.0270.03314.33
5.3.60.0270.03314.13
5.3.50.0300.05714.08
5.3.40.0230.05314.26
5.3.30.0270.06014.14
5.3.20.0230.06013.95
5.3.10.0230.04313.77
5.3.00.0230.05313.81
5.2.170.0170.04312.29
5.2.160.0200.04012.29
5.2.150.0270.02712.29
5.2.140.0270.05712.29
5.2.130.0230.04312.29
5.2.120.0200.04712.29
5.2.110.0230.04312.29
5.2.100.0200.04012.29
5.2.90.0230.03312.29
5.2.80.0200.06012.29
5.2.70.0230.03712.29
5.2.60.0230.06012.29
5.2.50.0270.03712.29
5.2.40.0170.06012.29
5.2.30.0130.04312.29
5.2.20.0130.06312.29
5.2.10.0230.05712.29
5.2.00.0170.04312.29
5.1.60.0270.03312.29
5.1.50.0130.04712.29
5.1.40.0170.03712.29
5.1.30.0200.05312.29
5.1.20.0270.04012.29
5.1.10.0130.04312.29
5.1.00.0270.04312.29
5.0.50.0130.03012.29
5.0.40.0130.03712.29
5.0.30.0070.03712.29
5.0.20.0130.03712.29
5.0.10.0170.03712.29
5.0.00.0170.05712.29
4.4.90.0100.03312.29
4.4.80.0070.01712.29
4.4.70.0100.02012.29
4.4.60.0070.03712.29
4.4.50.0100.03312.29
4.4.40.0100.04012.29
4.4.30.0200.02312.29
4.4.20.0070.03012.29
4.4.10.0100.03312.29
4.4.00.0100.03012.29
4.3.110.0100.03012.29
4.3.100.0100.01712.29
4.3.90.0100.03312.29
4.3.80.0100.05712.29
4.3.70.0130.03012.29
4.3.60.0100.02712.29
4.3.50.0100.03312.29
4.3.40.0100.05012.29
4.3.30.0070.03312.29
4.3.20.0030.03712.29
4.3.10.0070.03312.29
4.3.00.0100.03312.29

preferences:
49 ms | 401 KiB | 5 Q