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" > <ns0:submit xmlns:ns0="http://www.tibco.com/ns/no_namespace_schema_location/Payment/PaymentProcessors/WorldPay_CC/SharedResources/Schemas/paymentService_v1.dtd"> <ns0:order> <description>description</description> <amount value="500" currencyCode="EUR" exponent="2"/> <ns0:paymentDetails> <ns0:VISA-SSL> <cardNumber>00009875083428501</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 ); $xml->registerXPathNamespace('ns0', 'http://www.tibco.com/ns/no_namespace_schema_location/Payment/PaymentProcessors/WorldPay_CC/SharedResources/Schemas/paymentService_v1.dtd'); 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.60.0070.01416.75
8.3.50.0090.00822.17
8.3.40.0090.00619.04
8.3.30.0070.01119.33
8.3.20.0080.00020.59
8.3.10.0040.00424.03
8.3.00.0060.00317.50
8.2.180.0130.00616.88
8.2.170.0120.00322.96
8.2.160.0080.00820.75
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00022.63
8.2.110.0060.00322.76
8.2.100.0060.00618.16
8.2.90.0040.00419.63
8.2.80.0080.00018.05
8.2.70.0030.00618.00
8.2.60.0060.00318.18
8.2.50.0060.00318.07
8.2.40.0080.00018.41
8.2.30.0040.00418.34
8.2.20.0030.00517.88
8.2.10.0060.00318.15
8.2.00.0000.00818.02
8.1.280.0070.01125.92
8.1.270.0080.00024.34
8.1.260.0110.00026.35
8.1.250.0030.00628.09
8.1.240.0030.00624.25
8.1.230.0110.00019.52
8.1.220.0000.00817.89
8.1.210.0100.00018.77
8.1.200.0030.00617.86
8.1.190.0080.00017.91
8.1.180.0060.00318.10
8.1.170.0040.00418.96
8.1.160.0000.00722.44
8.1.150.0040.00418.85
8.1.140.0050.00217.93
8.1.130.0000.00718.20
8.1.120.0030.00317.74
8.1.110.0000.00817.93
8.1.100.0000.00717.71
8.1.90.0040.00417.68
8.1.80.0000.00717.89
8.1.70.0040.00417.64
8.1.60.0080.00017.88
8.1.50.0030.00617.98
8.1.40.0060.00317.77
8.1.30.0050.00318.04
8.1.20.0040.00417.83
8.1.10.0040.00417.70
8.1.00.0040.00417.94
8.0.300.0000.00718.77
8.0.290.0000.00717.68
8.0.280.0000.00818.90
8.0.270.0000.00717.54
8.0.260.0070.00017.19
8.0.250.0000.00717.32
8.0.240.0040.00417.27
8.0.230.0000.00817.33
8.0.220.0000.00717.25
8.0.210.0070.00317.39
8.0.200.0040.00417.24
8.0.190.0000.00717.38
8.0.180.0070.00017.27
8.0.170.0090.00017.41
8.0.160.0000.00717.16
8.0.150.0000.00717.20
8.0.140.0070.00017.18
8.0.130.0000.00913.62
8.0.120.0080.00317.36
8.0.110.0000.00817.10
8.0.100.0070.00017.11
8.0.90.0000.00717.16
8.0.80.0090.00617.23
8.0.70.0000.00817.26
8.0.60.0000.00817.46
8.0.50.0000.00817.23
8.0.30.0140.00317.64
8.0.20.0100.00817.63
8.0.10.0000.00717.31
8.0.00.0110.00617.23
7.4.330.0000.00515.45
7.4.320.0040.00417.05
7.4.300.0060.00016.83
7.4.290.0000.00716.89
7.4.280.0030.00616.80
7.4.270.0000.00717.00
7.4.260.0040.00416.92
7.4.250.0040.00416.98
7.4.240.0030.00416.89
7.4.230.0070.00017.09
7.4.220.0080.01616.88
7.4.210.0120.00516.90
7.4.200.0040.00416.80
7.4.190.0080.00016.85
7.4.160.0030.01317.00
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0090.00816.96
7.4.120.0100.01116.85
7.4.110.0100.00616.93
7.4.100.0110.01216.98
7.4.90.0080.01117.13
7.4.80.0110.01119.39
7.4.70.0070.01017.01
7.4.60.0030.01416.93
7.4.50.0000.00416.77
7.4.40.0040.01122.77
7.4.30.0160.00816.81
7.4.00.0100.00314.84
7.3.330.0050.00013.64
7.3.320.0060.00013.42
7.3.310.0030.00316.58
7.3.300.0060.00016.65
7.3.290.0040.01016.74
7.3.280.0090.00816.70
7.3.270.0110.00717.40
7.3.260.0090.00916.66
7.3.250.0100.00716.76
7.3.240.0030.02016.80
7.3.230.0100.00616.86
7.3.210.0120.00616.84
7.3.200.0000.01919.39
7.3.190.0110.01116.93
7.3.180.0100.00616.91
7.3.170.0180.00316.90
7.3.160.0040.01216.83
7.3.120.0060.00615.04
7.3.10.0120.00317.05
7.3.00.0070.00716.97
7.2.330.0160.00617.05
7.2.320.0120.00916.93
7.2.310.0130.00316.84
7.2.300.0140.00716.79
7.2.290.0140.00516.95
7.2.130.0070.00717.03
7.2.120.0080.00816.88
7.2.110.0080.00817.02
7.2.100.0110.00017.20
7.2.90.0060.00617.15
7.2.80.0040.00817.32
7.2.70.0040.01017.22
7.2.60.0060.01017.15
7.2.50.0070.01016.96
7.2.40.0120.00317.19
7.2.30.0100.00316.88
7.2.20.0040.00816.79
7.2.10.0040.01217.10
7.2.00.0070.00716.86
7.1.250.0030.00716.10
7.1.100.0000.01217.94
7.1.70.0020.00517.32
7.1.60.0060.01019.31
7.1.50.0090.00917.09
7.1.00.0000.07722.57
7.0.200.0000.01217.01
7.0.140.0100.06722.29
7.0.100.0370.04720.30
7.0.90.0100.05720.03
7.0.80.0230.05320.21
7.0.70.0100.04320.13
7.0.60.0100.04020.16
7.0.50.0270.08020.43
7.0.40.0070.07720.18
7.0.30.0100.07320.28
7.0.20.0100.06020.23
7.0.10.0100.07320.28
7.0.00.0070.08720.26
5.6.280.0070.07021.23
5.6.250.0170.07020.80
5.6.240.0130.07020.86
5.6.230.0230.04320.85
5.6.220.0130.06320.64
5.6.210.0070.06020.76
5.6.200.0130.09021.09
5.6.190.0130.06721.11
5.6.180.0070.08021.20
5.6.170.0130.05021.11
5.6.160.0000.06321.09
5.6.150.0030.05321.15
5.6.140.0030.05321.09
5.6.130.0100.07021.29
5.6.120.0100.08321.31
5.6.110.0070.09021.18
5.6.100.0030.06321.18
5.6.90.0170.08021.27
5.6.80.0170.07320.66
5.6.70.0100.05320.67
5.6.60.0000.05020.57
5.6.50.0030.05720.58
5.6.40.0000.05020.46
5.6.30.0070.06320.68
5.6.20.0000.05320.67
5.6.10.0100.06320.57
5.6.00.0130.07320.46
5.5.380.0030.08320.48
5.5.370.0000.06020.66
5.5.360.0070.07320.51
5.5.350.0070.08320.65
5.5.340.0070.08321.02
5.5.330.0030.05320.84
5.5.320.0030.08720.89
5.5.310.0070.07721.01
5.5.300.0030.05320.97
5.5.290.0070.06721.01
5.5.280.0100.08321.05
5.5.270.0100.08720.96
5.5.260.0030.07720.88
5.5.250.0130.07720.89
5.5.240.0030.08320.36
5.5.230.0130.03020.25
5.5.220.0030.04720.17
5.5.210.0070.08720.28
5.5.200.0030.05320.41
5.5.190.0030.07320.43
5.5.180.0070.07320.36
5.5.160.0070.07720.42
5.5.150.0100.08020.21
5.5.140.0000.07720.36
5.5.130.0130.06720.43
5.5.120.0070.08020.33
5.5.110.0070.05020.27
5.5.100.0030.08320.13
5.5.90.0200.07020.09
5.5.80.0100.07320.28
5.5.70.0170.06320.25
5.5.60.0000.05320.13
5.5.50.0070.08020.08
5.5.40.0070.08320.09
5.5.30.0030.08320.26
5.5.20.0030.05020.18
5.5.10.0100.05320.15
5.5.00.0000.05020.12
5.4.450.0070.04019.62
5.4.440.0100.07719.58
5.4.430.0000.08719.57
5.4.420.0100.06319.58
5.4.410.0130.06319.45
5.4.400.0030.07319.31
5.4.390.0030.04019.21
5.4.380.0030.04019.02
5.4.370.0100.07719.31
5.4.360.0130.06319.12
5.4.350.0130.07719.22
5.4.340.0030.04719.45
5.4.320.0170.05719.27
5.4.310.0100.07019.30
5.4.300.0000.08719.28
5.4.290.0030.04319.25
5.4.280.0100.07319.26
5.4.270.0030.07019.47
5.4.260.0100.06319.01
5.4.250.0100.04319.29
5.4.240.0030.04019.24
5.4.230.0070.06719.04
5.4.220.0130.06319.21
5.4.210.0030.07719.25
5.4.200.0130.07719.19
5.4.190.0070.07019.24
5.4.180.0070.07319.27
5.4.170.0030.07019.27
5.4.160.0030.05019.30
5.4.150.0030.06319.26
5.4.140.0070.05716.54
5.4.130.0100.07016.59
5.4.120.0030.04316.46
5.4.110.0100.04016.55
5.4.100.0100.07316.53
5.4.90.0000.05016.64
5.4.80.0000.06716.69
5.4.70.0100.05016.62
5.4.60.0030.06716.52
5.4.50.0100.07316.64
5.4.40.0070.03316.51
5.4.30.0030.06016.46
5.4.20.0070.06716.43
5.4.10.0070.05016.68
5.4.00.0000.04316.02
5.3.290.0030.06314.82
5.3.280.0070.07314.84
5.3.270.0070.07314.63
5.3.260.0100.07314.76
5.3.250.0030.03714.77
5.3.240.0100.04014.70
5.3.230.0070.04014.72
5.3.220.0170.06714.80
5.3.210.0070.07014.63
5.3.200.0070.07714.73
5.3.190.0070.04714.74
5.3.180.0100.07014.66
5.3.170.0070.07314.61
5.3.160.0070.07314.59
5.3.150.0070.06314.71
5.3.140.0100.06014.76
5.3.130.0070.06314.79
5.3.120.0100.07014.78
5.3.110.0070.07014.71
5.3.100.0130.05014.25
5.3.90.0130.06014.20
5.3.80.0130.03314.14
5.3.70.0030.08014.24
5.3.60.0030.04714.16
5.3.50.0070.05714.12
5.3.40.0030.05314.14
5.3.30.0030.06714.04
5.3.20.0070.03313.70
5.3.10.0030.03713.75
5.3.00.0030.04013.64
5.2.170.0070.05711.32
5.2.160.0000.03311.30
5.2.150.0030.04311.23
5.2.140.0070.06311.25
5.2.130.0070.03311.28
5.2.120.0070.03311.19
5.2.110.0000.03311.19
5.2.100.0000.03011.37
5.2.90.0070.02011.34
5.2.80.0030.02711.26
5.2.70.0070.02711.14
5.2.60.0030.03011.24
5.2.50.0000.03011.17
5.2.40.0070.02311.18
5.2.30.0030.02311.25
5.2.20.0000.02711.26
5.2.10.0170.01311.07
5.2.00.0000.03310.93
5.1.60.0030.02310.26
5.1.50.0070.02310.30
5.1.40.0000.02710.25
5.1.30.0030.02310.45
5.1.20.0000.03010.61
5.1.10.0000.02710.28
5.1.00.0000.02310.16
5.0.50.0000.0178.55
5.0.40.0030.0178.52
5.0.30.0000.0278.22
5.0.20.0000.0178.37
5.0.10.0030.0138.35
5.0.00.0000.0378.24
4.4.90.0000.0137.30
4.4.80.0030.0137.30
4.4.70.0030.0137.30
4.4.60.0030.0137.30
4.4.50.0030.0137.30
4.4.40.0000.0237.30
4.4.30.0000.0137.30
4.4.20.0070.0107.30
4.4.10.0000.0177.30
4.4.00.0000.0207.30
4.3.110.0000.0137.30
4.3.100.0030.0137.30
4.3.90.0000.0207.30
4.3.80.0000.0207.30
4.3.70.0000.0177.30
4.3.60.0030.0107.30
4.3.50.0000.0177.30
4.3.40.0000.0237.30
4.3.30.0000.0177.30
4.3.20.0030.0137.30
4.3.10.0030.0137.30
4.3.00.0030.0107.30

preferences:
47.53 ms | 401 KiB | 5 Q