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>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.60.0090.01218.93
8.3.50.0240.00022.11
8.3.40.0090.00619.40
8.3.30.0120.00619.55
8.3.20.0080.00020.85
8.3.10.0000.00922.20
8.3.00.0000.00823.02
8.2.180.0150.00016.88
8.2.170.0120.00922.96
8.2.160.0100.00321.21
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00819.86
8.2.110.0120.00922.58
8.2.100.0120.00018.03
8.2.90.0000.00819.61
8.2.80.0040.00418.41
8.2.70.0030.00518.00
8.2.60.0000.00818.30
8.2.50.0060.00318.07
8.2.40.0080.00018.31
8.2.30.0050.00318.53
8.2.20.0040.00418.12
8.2.10.0000.00717.97
8.2.00.0030.00618.00
8.1.280.0110.00425.92
8.1.270.0050.00324.32
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00724.34
8.1.230.0120.00019.40
8.1.220.0050.00318.16
8.1.210.0090.00018.77
8.1.200.0060.00317.63
8.1.190.0040.00418.04
8.1.180.0000.00818.10
8.1.170.0090.00019.04
8.1.160.0040.00422.39
8.1.150.0060.00319.06
8.1.140.0050.00317.81
8.1.130.0000.00718.13
8.1.120.0050.00217.94
8.1.110.0040.00417.88
8.1.100.0040.00417.93
8.1.90.0050.00317.58
8.1.80.0000.00717.91
8.1.70.0030.00317.63
8.1.60.0030.00617.73
8.1.50.0040.00417.97
8.1.40.0000.00717.97
8.1.30.0050.00317.86
8.1.20.0050.00317.82
8.1.10.0070.00017.83
8.1.00.0050.00217.64
8.0.300.0040.00418.77
8.0.290.0060.00317.54
8.0.280.0030.00318.82
8.0.270.0040.00417.71
8.0.260.0090.00017.19
8.0.250.0030.00517.44
8.0.240.0000.00717.17
8.0.230.0060.00317.42
8.0.220.0000.00717.34
8.0.210.0000.00717.18
8.0.200.0000.00717.23
8.0.190.0000.00717.42
8.0.180.0030.00517.26
8.0.170.0080.00017.28
8.0.160.0000.00717.54
8.0.150.0040.00417.16
8.0.140.0000.00717.09
8.0.130.0000.00713.85
8.0.120.0040.00417.32
8.0.110.0050.00217.40
8.0.100.0000.00717.21
8.0.90.0040.00417.31
8.0.80.0090.00717.27
8.0.70.0000.00817.14
8.0.60.0070.00017.36
8.0.50.0070.00017.22
8.0.30.0080.01117.53
8.0.20.0080.01117.46
8.0.10.0040.00417.40
8.0.00.0120.01017.18
7.4.330.0000.00515.45
7.4.320.0070.00016.93
7.4.300.0040.00416.82
7.4.290.0040.00416.91
7.4.280.0080.00016.90
7.4.270.0070.00016.91
7.4.260.0080.00017.04
7.4.250.0040.00416.81
7.4.240.0040.00416.96
7.4.230.0000.00816.88
7.4.220.0030.01617.00
7.4.210.0080.00916.97
7.4.200.0000.00716.79
7.4.190.0000.00716.88
7.4.160.0100.01317.01
7.4.150.0030.01517.40
7.4.140.0050.01517.86
7.4.130.0080.01016.85
7.4.120.0120.00616.94
7.4.110.0100.00717.05
7.4.100.0140.00316.86
7.4.90.0090.00916.96
7.4.80.0060.01116.98
7.4.70.0110.00516.91
7.4.60.0120.00416.73
7.4.50.0090.00016.76
7.4.40.0000.01322.77
7.4.30.0070.01016.91
7.4.00.0120.00415.33
7.3.330.0060.00013.55
7.3.320.0000.00513.53
7.3.310.0070.00016.34
7.3.300.0030.00316.54
7.3.290.0110.01116.56
7.3.280.0090.00816.65
7.3.270.0110.00717.40
7.3.260.0140.00716.60
7.3.250.0130.00416.63
7.3.240.0150.00616.53
7.3.230.0100.00716.76
7.3.210.0100.00616.42
7.3.200.0150.00719.39
7.3.190.0100.00716.70
7.3.180.0060.01516.53
7.3.170.0030.01316.58
7.3.160.0040.01316.86
7.3.120.0110.00714.87
7.3.110.0070.01114.88
7.3.100.0030.01214.96
7.3.90.0080.01015.05
7.3.80.0050.00814.98
7.3.70.0090.00814.83
7.3.60.0070.00615.00
7.3.50.0030.00814.64
7.3.40.0090.00614.82
7.3.30.0040.00714.95
7.3.20.0050.01216.76
7.3.10.0080.00716.59
7.3.00.0040.00916.69
7.2.330.0040.01516.95
7.2.320.0080.01116.89
7.2.310.0100.01417.04
7.2.300.0080.00817.01
7.2.290.0060.00916.61
7.2.250.0080.00915.34
7.2.240.0080.01015.08
7.2.230.0090.00615.13
7.2.220.0050.01515.16
7.2.210.0000.01615.01
7.2.200.0080.00315.25
7.2.190.0070.00615.06
7.2.180.0050.01015.21
7.2.170.0130.00515.29
7.2.130.0040.00717.00
7.2.120.0110.00416.97
7.2.110.0060.00617.29
7.2.100.0140.00317.02
7.2.90.0070.00717.24
7.2.80.0040.01117.11
7.2.70.0070.00716.89
7.2.60.0030.01016.93
7.2.50.0080.00817.04
7.2.40.0110.00017.04
7.2.30.0060.00917.02
7.2.20.0030.00717.03
7.2.10.0030.00916.82
7.2.00.0020.01118.35
7.1.330.0130.00216.04
7.1.320.0060.00615.87
7.1.310.0050.01015.79
7.1.300.0090.00615.86
7.1.290.0030.01115.79
7.1.280.0090.00816.04
7.1.270.0080.00315.85
7.1.260.0060.00615.79
7.1.250.0070.01015.91
7.1.100.0090.00317.96
7.1.70.0040.00417.35
7.1.60.0030.00717.19
7.1.50.0040.01517.07
7.1.00.0130.06722.68
7.0.200.0060.00817.07
7.0.140.0030.07322.24
7.0.110.0330.05320.36
7.0.100.0470.03720.17
7.0.90.0130.04320.19
7.0.80.0170.04020.34
7.0.70.0270.04020.14
7.0.60.0270.04720.21
7.0.50.0600.07020.64
7.0.40.0130.08020.21
7.0.30.0030.09320.23
7.0.20.0070.05020.36
7.0.10.0070.05020.46
7.0.00.0100.07720.53
5.6.280.0000.07720.98
5.6.260.0100.03720.97
5.6.250.0000.04720.82
5.6.240.0100.03320.82
5.6.230.0130.03320.84
5.6.220.0070.05720.97
5.6.210.0030.04320.63
5.6.200.0000.09321.29
5.6.190.0100.07721.31
5.6.180.0070.07021.14
5.6.170.0000.08321.09
5.6.160.0030.06721.30
5.6.150.0070.08021.14
5.6.140.0100.08021.33
5.6.130.0030.05721.16
5.6.120.0030.08321.10
5.6.110.0230.06721.39
5.6.100.0070.08021.32
5.6.90.0030.05321.27
5.6.80.0100.07020.87
5.6.70.0130.06720.77
5.6.60.0130.07320.66
5.6.50.0100.07720.77
5.6.40.0030.08020.91
5.6.30.0030.07720.46
5.6.20.0100.07720.63
5.6.10.0000.05020.74
5.6.00.0170.06320.63
5.5.380.0000.08020.74
5.5.370.0070.03720.62
5.5.360.0000.04720.69
5.5.350.0000.04720.67
5.5.340.0170.07320.92
5.5.330.0100.07721.22
5.5.320.0170.04721.11
5.5.310.0130.06321.15
5.5.300.0170.07321.09
5.5.290.0130.07321.10
5.5.280.0030.08020.84
5.5.270.0070.08320.88
5.5.260.0070.07721.21
5.5.250.0070.08320.92
5.5.240.0100.07720.69
5.5.230.0030.08020.54
5.5.220.0070.03720.22
5.5.210.0030.07020.38
5.5.200.0100.06020.37
5.5.190.0130.07320.66
5.5.180.0030.07720.52
5.5.160.0130.07020.27
5.5.150.0070.08320.57
5.5.140.0100.07720.44
5.5.130.0100.08020.19
5.5.120.0130.07320.45
5.5.110.0130.05320.48
5.5.100.0070.07720.40
5.5.90.0130.06020.43
5.5.80.0030.08320.42
5.5.70.0130.07020.17
5.5.60.0100.07720.32
5.5.50.0030.08020.46
5.5.40.0070.07320.46
5.5.30.0100.07320.14
5.5.20.0070.08020.33
5.5.10.0200.06320.41
5.5.00.0130.07320.20
5.4.450.0130.07019.58
5.4.440.0100.07719.75
5.4.430.0100.07019.52
5.4.420.0070.08319.52
5.4.410.0100.07319.35
5.4.400.0170.07019.18
5.4.390.0170.06719.41
5.4.380.0070.04319.26
5.4.370.0100.06319.41
5.4.360.0070.07319.26
5.4.350.0000.04019.42
5.4.340.0170.06319.16
5.4.320.0030.07719.34
5.4.310.0100.05019.16
5.4.300.0100.07019.23
5.4.290.0100.04319.20
5.4.280.0100.05719.23
5.4.270.0130.07319.43
5.4.260.0100.07319.46
5.4.250.0030.08019.16
5.4.240.0070.07019.54
5.4.230.0030.08719.50
5.4.220.0070.07019.23
5.4.210.0200.06019.11
5.4.200.0100.07719.50
5.4.190.0070.07019.15
5.4.180.0170.06719.47
5.4.170.0000.06019.21
5.4.160.0100.04019.18
5.4.150.0100.07719.41
5.4.140.0000.08016.51
5.4.130.0100.06716.53
5.4.120.0070.04316.87
5.4.110.0030.06716.66
5.4.100.0030.07316.85
5.4.90.0170.06316.57
5.4.80.0030.07316.83
5.4.70.0130.06316.84
5.4.60.0130.05316.82
5.4.50.0070.06316.49
5.4.40.0100.07316.85
5.4.30.0170.06716.82
5.4.20.0130.06316.78
5.4.10.0030.08016.83
5.4.00.0130.06016.09
5.3.290.0070.03714.80
5.3.280.0130.07014.77
5.3.270.0130.06714.91
5.3.260.0030.08014.84
5.3.250.0100.06714.84
5.3.240.0030.07314.89
5.3.230.0070.08014.73
5.3.220.0130.05714.70
5.3.210.0070.07714.82
5.3.200.0070.07014.70
5.3.190.0070.07714.74
5.3.180.0070.06314.73
5.3.170.0070.07314.96
5.3.160.0100.07014.76
5.3.150.0000.04714.73
5.3.140.0070.04314.74
5.3.130.0100.07014.72
5.3.120.0000.07014.72
5.3.110.0100.07314.90
5.3.100.0070.08014.39
5.3.90.0070.04714.41
5.3.80.0130.06314.33
5.3.70.0030.07314.23
5.3.60.0070.07314.20
5.3.50.0030.07714.11
5.3.40.0070.07714.15
5.3.30.0100.06014.20
5.3.20.0070.06713.90
5.3.10.0100.06713.83
5.3.00.0070.07313.94
5.2.170.0000.06712.45
5.2.160.0030.06712.45
5.2.150.0030.06312.45
5.2.140.0170.04712.45
5.2.130.0000.06712.45
5.2.120.0030.06012.45
5.2.110.0170.05012.45
5.2.100.0100.06012.45
5.2.90.0100.06012.45
5.2.80.0030.04012.45
5.2.70.0030.07012.45
5.2.60.0070.03712.45
5.2.50.0000.06312.45
5.2.40.0030.06012.45
5.2.30.0070.04712.45
5.2.20.0000.05712.45
5.2.10.0030.06312.45
5.2.00.0000.06312.45
5.1.60.0070.05012.45
5.1.50.0000.05712.45
5.1.40.0030.05312.45
5.1.30.0070.05012.45
5.1.20.0000.06312.45
5.1.10.0000.03312.45
5.1.00.0070.05012.45
5.0.50.0070.04312.45
5.0.40.0100.02012.45
5.0.30.0030.05012.45
5.0.20.0070.02012.45
5.0.10.0100.03712.45
5.0.00.0030.05712.45
4.4.90.0070.03312.45
4.4.80.0030.02012.45
4.4.70.0070.01312.45
4.4.60.0000.02012.45
4.4.50.0030.03712.45
4.4.40.0070.03712.45
4.4.30.0000.04012.45
4.4.20.0030.03312.45
4.4.10.0000.03312.45
4.4.00.0030.05312.45
4.3.110.0030.03312.45
4.3.100.0030.03012.45
4.3.90.0030.03312.45
4.3.80.0000.05312.45
4.3.70.0000.03312.45
4.3.60.0000.03712.45
4.3.50.0070.01712.45
4.3.40.0030.05312.45
4.3.30.0000.02712.45
4.3.20.0030.01712.45
4.3.10.0000.03712.45
4.3.00.0030.03012.45

preferences:
54.14 ms | 400 KiB | 5 Q