3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <?xml version="1.0" encoding="UTF-8"?> <paymentService version="1.0" xmlns:ns0="http://www.tibco.com/ns/no_namespace_schema_location/Payment/PaymentProcessors/WorldPay_CC/SharedResources/Schemas/paymentService_v1.dtd"> <ns0:submit> <ns0:order> <description>description</description> <amount value="500" currencyCode="EUR" exponent="2"/> <ns0:paymentDetails> <ns0:VISA-SSL> <cardNumber>00009875083428500</cardNumber> <expiryDate> <date month="02" year="2008"/> </expiryDate> <cardHolderName>test</cardHolderName> </ns0:VISA-SSL> <session shopperIPAddress="192.165.22.35" id=""/> </ns0:paymentDetails> <shopper> <browser> <acceptHeader>text/html</acceptHeader> <userAgentHeader>mozilla 5.0</userAgentHeader> </browser> </shopper> </ns0:order> </ns0:submit> </paymentService> XML ); foreach($xml->xpath('/paymentService/ns0:submit/ns0:order/ns0:paymentDetails/ns0:VISA-SSL/cardNumber') as $node) { echo (string)$node; }

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.40.0040.01119.07
8.3.30.0000.01519.05
8.3.20.0050.00318.99
8.3.10.0000.00821.34
8.3.00.0070.00022.02
8.2.170.0150.00022.96
8.2.160.0070.00720.72
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00321.50
8.2.110.0060.00320.97
8.2.100.0080.00418.22
8.2.90.0050.00319.54
8.2.80.0060.00318.41
8.2.70.0040.00418.00
8.2.60.0060.00318.41
8.2.50.0070.00318.07
8.2.40.0040.00418.59
8.2.30.0040.00419.79
8.2.20.0040.00418.07
8.2.10.0040.00418.09
8.2.00.0100.00318.00
8.1.270.0040.00422.61
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0040.00722.52
8.1.230.0040.00821.26
8.1.220.0080.00018.77
8.1.210.0000.00819.31
8.1.200.0030.00617.63
8.1.190.0000.00818.03
8.1.180.0000.00918.10
8.1.170.0030.00518.90
8.1.160.0040.00419.22
8.1.150.0040.00419.07
8.1.140.0030.00517.86
8.1.130.0030.00318.19
8.1.120.0000.00717.66
8.1.110.0040.00417.92
8.1.100.0000.00717.75
8.1.90.0080.00017.75
8.1.80.0000.00717.93
8.1.70.0030.00317.70
8.1.60.0000.00917.97
8.1.50.0040.00417.94
8.1.40.0040.00418.00
8.1.30.0040.00418.09
8.1.20.0030.00618.02
8.1.10.0000.00717.76
8.1.00.0000.00817.82
8.0.300.0100.00020.43
8.0.290.0070.00017.55
8.0.280.0070.00018.80
8.0.270.0000.00817.28
8.0.260.0000.00717.24
8.0.250.0040.00417.54
8.0.240.0070.00017.49
8.0.230.0050.00317.47
8.0.220.0030.00317.46
8.0.210.0000.00717.44
8.0.200.0000.00617.25
8.0.190.0040.00417.51
8.0.180.0070.00017.44
8.0.170.0070.00017.34
8.0.160.0040.00417.39
8.0.150.0050.00217.18
8.0.140.0030.00617.25
8.0.130.0050.00013.77
8.0.120.0070.00017.41
8.0.110.0040.00417.42
8.0.100.0000.00817.16
8.0.90.0080.00017.37
8.0.80.0100.00617.34
8.0.70.0050.00217.35
8.0.60.0040.00417.25
8.0.50.0040.00417.37
8.0.30.0120.00717.40
8.0.20.0150.01217.65
8.0.10.0050.00317.38
8.0.00.0140.00517.12
7.4.330.0000.00517.15
7.4.320.0030.00316.82
7.4.300.0000.00717.01
7.4.290.0000.00716.90
7.4.280.0000.00716.93
7.4.270.0070.00016.97
7.4.260.0050.00013.55
7.4.250.0030.00516.95
7.4.240.0030.00317.02
7.4.230.0030.00316.97
7.4.220.0030.01716.90
7.4.210.0070.01116.88
7.4.200.0000.00717.13
7.4.190.0030.00317.07
7.4.160.0120.00616.87
7.4.150.0150.00317.40
7.4.140.0090.00817.86
7.4.130.0160.00917.02
7.4.120.0080.00816.86
7.4.110.0030.01316.88
7.4.100.0130.01017.05
7.4.90.0060.01216.92
7.4.80.0110.01119.39
7.4.70.0100.00616.91
7.4.60.0240.01417.11
7.4.50.0080.00016.91
7.4.40.0000.01222.77
7.4.30.0000.01617.09
7.4.00.0070.00715.17
7.3.330.0000.00513.33
7.3.320.0080.00013.66
7.3.310.0030.00516.84
7.3.300.0030.00316.64
7.3.290.0030.01016.78
7.3.280.0050.01216.78
7.3.270.0070.01017.40
7.3.260.0090.01018.24
7.3.250.0150.00616.79
7.3.240.0060.00916.56
7.3.230.0120.01216.70
7.3.210.0030.01416.86
7.3.200.0090.01219.39
7.3.190.0080.00816.89
7.3.180.0100.00616.79
7.3.170.0110.00616.93
7.3.160.0070.01116.81
7.3.120.0030.01214.89
7.3.110.0000.01815.15
7.3.100.0090.00915.34
7.3.90.0080.00815.19
7.3.80.0070.01115.16
7.3.70.0060.00615.05
7.3.60.0090.00614.92
7.3.50.0100.00015.04
7.3.40.0040.00815.21
7.3.30.0110.00414.79
7.3.20.0060.00916.80
7.3.10.0030.01316.96
7.3.00.0050.00516.80
7.2.330.0100.00716.80
7.2.320.0090.00817.15
7.2.310.0100.01317.06
7.2.300.0140.00317.02
7.2.290.0070.01017.20
7.2.250.0030.00915.34
7.2.240.0000.01215.03
7.2.230.0040.01115.38
7.2.220.0080.00515.62
7.2.210.0080.00315.29
7.2.200.0070.01015.24
7.2.190.0050.00515.23
7.2.180.0090.00315.39
7.2.170.0030.01415.31
7.2.160.0070.00715.30
7.2.150.0060.00617.26
7.2.140.0040.01217.01
7.2.130.0000.01416.93
7.2.120.0030.00717.20
7.2.110.0040.00817.15
7.2.100.0060.00617.21
7.2.90.0070.00717.05
7.2.80.0030.01217.03
7.2.70.0070.00317.10
7.2.60.0040.00816.98
7.2.50.0000.01017.31
7.2.40.0000.01017.09
7.2.30.0040.00717.22
7.2.20.0060.01217.37
7.2.10.0110.00417.03
7.2.00.0040.01117.24
7.1.330.0120.00016.04
7.1.320.0100.00315.88
7.1.310.0070.00716.07
7.1.300.0060.00916.02
7.1.290.0080.00415.87
7.1.280.0030.01015.67
7.1.270.0080.00015.86
7.1.260.0040.00415.91
7.1.250.0030.00615.86
7.1.240.0000.00815.88
7.1.230.0070.00715.81
7.1.220.0100.00315.76
7.1.210.0000.01015.72
7.1.200.0020.01215.84
7.1.190.0090.00615.88
7.1.180.0140.00015.83
7.1.170.0100.00315.90
7.1.160.0030.00815.83
7.1.150.0090.00915.95
7.1.140.0120.00415.79
7.1.130.0030.00815.81
7.1.120.0080.00315.92
7.1.110.0000.01715.77
7.1.100.0030.01316.93
7.1.90.0030.00615.91
7.1.80.0060.00615.86
7.1.70.0040.00516.60
7.1.60.0020.01517.56
7.1.50.0100.00916.64
7.1.40.0060.01116.02
7.1.30.0060.00315.77
7.1.20.0060.00916.07
7.1.10.0150.00015.89
7.1.00.0050.01919.23
7.0.330.0070.00715.48
7.0.320.0000.00815.34
7.0.310.0030.01015.39
7.0.300.0000.01415.47
7.0.290.0030.01315.39
7.0.280.0070.01015.67
7.0.270.0070.00715.52
7.0.260.0140.00415.59
7.0.250.0000.01115.54
7.0.240.0000.01715.70
7.0.230.0030.00615.46
7.0.220.0120.00015.56
7.0.210.0000.01015.61
7.0.200.0040.00516.20
7.0.190.0110.00615.73
7.0.180.0060.00615.57
7.0.170.0000.01515.37
7.0.160.0060.00715.64
7.0.150.0080.00815.55
7.0.140.0050.04018.98
7.0.130.0110.00415.60
7.0.120.0060.00915.40
7.0.110.0090.00015.61
7.0.100.0240.03818.03
7.0.90.0150.02917.78
7.0.80.0130.02617.86
7.0.70.0120.02317.87
7.0.60.0050.02917.72
7.0.50.0150.02418.04
7.0.40.0050.02316.93
7.0.30.0050.02316.99
7.0.20.0060.02416.87
7.0.10.0030.02517.09
7.0.00.0040.02816.81
5.6.400.0060.00314.75
5.6.390.0070.01014.47
5.6.380.0000.01614.48
5.6.370.0040.00814.13
5.6.360.0100.00714.59
5.6.350.0040.01414.46
5.6.340.0060.01214.57
5.6.330.0080.00414.29
5.6.320.0060.00914.21
5.6.310.0030.01014.63
5.6.300.0070.01114.71
5.6.290.0090.00614.85
5.6.280.0060.04117.79
5.6.270.0040.00814.47
5.6.260.0040.00814.59
5.6.250.0050.03517.66
5.6.240.0120.03717.79
5.6.230.0030.03817.65
5.6.220.0030.02517.62
5.6.210.0050.03417.58
5.6.200.0090.02117.74
5.6.190.0100.02217.87
5.6.180.0110.01817.88
5.6.170.0130.01717.88
5.6.160.0050.03518.03
5.6.150.0030.02617.85
5.6.140.0030.02518.00
5.6.130.0080.02517.86
5.6.120.0070.02517.99
5.6.110.0080.04017.91
5.6.100.0030.04917.95
5.6.90.0040.04917.71
5.6.80.0050.04517.40
5.6.70.0080.04217.58
5.6.60.0050.04317.61
5.6.50.0040.04917.53
5.6.40.0110.03817.51
5.6.30.0070.04217.44
5.6.20.0100.04017.64
5.6.10.0050.04517.46
5.6.00.0130.03317.42
5.5.380.0100.04217.56
5.5.370.0070.03817.55
5.5.360.0050.02717.69
5.5.350.0030.02617.66
5.5.340.0050.02617.86
5.5.330.0080.02317.66
5.5.320.0110.03217.77
5.5.310.0070.02217.69
5.5.300.0050.02317.73
5.5.290.0090.02017.78
5.5.280.0050.02417.72
5.5.270.0030.02417.72
5.5.260.0070.02917.69
5.5.250.0050.04217.56
5.5.240.0110.03817.29
5.5.230.0080.04217.33
5.5.220.0070.04417.37
5.5.210.0060.03617.34
5.5.200.0100.04517.37
5.5.190.0050.04517.37
5.5.180.0110.02517.33
5.5.170.0070.00714.45
5.5.160.0050.04417.35
5.5.150.0090.04217.30
5.5.140.0080.03817.38
5.5.130.0100.02817.34
5.5.120.0030.04217.27
5.5.110.0100.03717.32
5.5.100.0060.02717.31
5.5.90.0060.04117.29
5.5.80.0050.04317.37
5.5.70.0090.03917.17
5.5.60.0080.02217.35
5.5.50.0030.03217.28
5.5.40.0060.04117.36
5.5.30.0110.04017.12
5.5.20.0070.04417.26
5.5.10.0050.04717.14
5.5.00.0140.03417.35
5.4.450.0050.02215.39
5.4.440.0050.02615.41
5.4.430.0030.02515.38
5.4.420.0050.03515.40
5.4.410.0120.03515.31
5.4.400.0070.02415.22
5.4.390.0080.03915.25
5.4.380.0050.02415.23
5.4.370.0050.03915.27
5.4.360.0070.04215.18
5.4.350.0100.04215.22
5.4.340.0050.04115.18
5.4.330.0100.00011.23
5.4.320.0000.04615.28
5.4.310.0030.03715.27
5.4.300.0070.03415.23
5.4.290.0040.04415.24
5.4.280.0030.04315.27
5.4.270.0050.04115.24
5.4.260.0050.02315.32
5.4.250.0020.02715.23
5.4.240.0130.02815.24
5.4.230.0080.02715.12
5.4.220.0020.04515.24
5.4.210.0030.04415.25
5.4.200.0000.04515.24
5.4.190.0030.02915.24
5.4.180.0030.04015.13
5.4.170.0000.03115.24
5.4.160.0060.03715.12
5.4.150.0070.02715.27
5.4.140.0060.02313.84
5.4.130.0080.02213.91
5.4.120.0040.04013.88
5.4.110.0030.04013.87
5.4.100.0050.04013.92
5.4.90.0090.03813.97
5.4.80.0000.04313.84
5.4.70.0070.03713.86
5.4.60.0050.03813.83
5.4.50.0050.03813.96
5.4.40.0070.03513.94
5.4.30.0070.03913.96
5.4.20.0080.03813.92
5.4.10.0060.03913.87
5.4.00.0020.03213.60
5.3.290.0100.03712.96
5.3.280.0060.02612.99
5.3.270.0070.03713.00
5.3.260.0030.03212.98
5.3.250.0040.04013.02
5.3.240.0070.04013.01
5.3.230.0050.04013.00
5.3.220.0030.04113.00
5.3.210.0080.04013.01
5.3.200.0050.04312.93
5.3.190.0050.03512.93
5.3.180.0080.03512.99
5.3.170.0060.03812.93
5.3.160.0060.02312.97
5.3.150.0030.03712.98
5.3.140.0060.04012.98
5.3.130.0060.04012.90
5.3.120.0050.04012.97
5.3.110.0060.02912.96
5.3.100.0050.03412.71
5.3.90.0070.03712.69
5.3.80.0010.02912.73
5.3.70.0030.03812.70
5.3.60.0030.02912.73
5.3.50.0070.03912.67
5.3.40.0070.02412.67
5.3.30.0100.01812.57
5.3.20.0030.03212.54
5.3.10.0070.03712.56
5.3.00.0100.03512.54
5.2.170.0000.06711.44
5.2.160.0070.05311.41
5.2.150.0030.05011.43
5.2.140.0070.06711.19
5.2.130.0030.05711.37
5.2.120.0000.07011.27
5.2.110.0070.03011.36
5.2.100.0070.04711.34
5.2.90.0070.06011.37
5.2.80.0070.06311.28
5.2.70.0030.06011.37
5.2.60.0000.04711.29
5.2.50.0130.05311.26
5.2.40.0070.04711.21
5.2.30.0070.06011.21
5.2.20.0100.05711.05
5.2.10.0070.05011.08
5.2.00.0030.06310.84
5.1.60.0000.06010.27
5.1.50.0070.05310.30
5.1.40.0000.05710.18
5.1.30.0070.05710.55
5.1.20.0000.05310.68
5.1.10.0070.05310.34
5.1.00.0100.03710.33
5.0.50.0070.0408.73
5.0.40.0070.0378.59
5.0.30.0100.0508.51
5.0.20.0070.0408.41
5.0.10.0030.0278.45
5.0.00.0030.0578.52
4.4.90.0030.0307.97
4.4.80.0070.0337.97
4.4.70.0000.0307.97
4.4.60.0000.0277.97
4.4.50.0000.0277.97
4.4.40.0000.0437.97
4.4.30.0000.0307.97
4.4.20.0000.0307.97
4.4.10.0000.0277.97
4.4.00.0000.0377.97
4.3.110.0070.0307.97
4.3.100.0000.0337.97
4.3.90.0000.0377.97
4.3.80.0030.0507.97
4.3.70.0030.0277.97
4.3.60.0000.0337.97
4.3.50.0000.0377.97
4.3.40.0000.0437.97
4.3.30.0030.0177.97
4.3.20.0000.0177.97
4.3.10.0000.0207.97
4.3.00.0030.0337.97

preferences:
59.47 ms | 400 KiB | 5 Q