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 ); $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.40.0090.00619.25
8.3.30.0060.00919.22
8.3.20.0060.00319.06
8.3.10.0060.00319.06
8.3.00.0030.00619.76
8.2.170.0070.00722.96
8.2.160.0120.00619.34
8.2.150.0050.00325.66
8.2.140.0150.00324.66
8.2.130.0030.00526.16
8.2.120.0030.00621.38
8.2.110.0070.00421.61
8.2.100.0090.00318.09
8.2.90.0000.01019.88
8.2.80.0060.00319.58
8.2.70.0050.00517.73
8.2.60.0040.00418.30
8.2.50.0060.00318.07
8.2.40.0040.00418.47
8.2.30.0030.00518.29
8.2.20.0050.00517.98
8.2.10.0040.00418.13
8.2.00.0000.00818.16
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00321.54
8.1.230.0080.00321.47
8.1.220.0080.00018.02
8.1.210.0080.00019.15
8.1.200.0100.00017.50
8.1.190.0000.00817.80
8.1.180.0060.00318.10
8.1.170.0030.00619.34
8.1.160.0000.00719.31
8.1.150.0000.00719.02
8.1.140.0040.00417.92
8.1.130.0070.00018.19
8.1.120.0000.00717.91
8.1.110.0040.00417.71
8.1.100.0070.00017.69
8.1.90.0040.00417.66
8.1.80.0040.00417.89
8.1.70.0000.00717.80
8.1.60.0040.00418.01
8.1.50.0040.00417.89
8.1.40.0080.00017.95
8.1.30.0030.00618.03
8.1.20.0080.00018.04
8.1.10.0000.00817.76
8.1.00.0000.00817.71
8.0.300.0040.00420.26
8.0.290.0000.00817.25
8.0.280.0040.00418.87
8.0.270.0050.00317.51
8.0.260.0030.00317.30
8.0.250.0030.00517.39
8.0.240.0070.00017.50
8.0.230.0000.00717.50
8.0.220.0000.00717.22
8.0.210.0040.00417.33
8.0.200.0050.00317.47
8.0.190.0060.00317.45
8.0.180.0000.00817.41
8.0.170.0060.00317.34
8.0.160.0000.00717.40
8.0.150.0040.00417.40
8.0.140.0000.00817.09
8.0.130.0030.00313.86
8.0.120.0060.00317.21
8.0.110.0000.00717.18
8.0.100.0040.00417.15
8.0.90.0030.00517.33
8.0.80.0070.01017.34
8.0.70.0030.00517.30
8.0.60.0060.00317.23
8.0.50.0040.00417.18
8.0.30.0130.00317.22
8.0.20.0100.00917.71
8.0.10.0000.00817.41
8.0.00.0110.01217.18
7.4.330.0030.00313.41
7.4.320.0070.00016.95
7.4.300.0000.00717.02
7.4.290.0040.00416.83
7.4.280.0080.00016.95
7.4.270.0000.00716.98
7.4.260.0030.00313.75
7.4.250.0050.00316.90
7.4.240.0050.00216.91
7.4.230.0030.00316.79
7.4.220.0070.01117.05
7.4.210.0070.01416.97
7.4.200.0040.00416.87
7.4.190.0040.00416.96
7.4.160.0110.00416.84
7.4.150.0150.00916.95
7.4.140.0070.01016.93
7.4.130.0140.00316.79
7.4.120.0030.01416.66
7.4.110.0140.00717.10
7.4.100.0070.01016.96
7.4.90.0130.00417.06
7.4.80.0140.00419.39
7.4.70.0070.01116.80
7.4.60.0070.01016.87
7.4.50.0040.00416.91
7.4.40.0040.00816.71
7.4.30.0160.00317.01
7.4.00.0070.01115.46
7.3.330.0000.00613.48
7.3.320.0050.00013.64
7.3.310.0000.00716.83
7.3.300.0000.00716.63
7.3.290.0060.00816.68
7.3.280.0070.01016.71
7.3.270.0100.00716.73
7.3.260.0100.01417.04
7.3.250.0130.00816.72
7.3.240.0090.00916.93
7.3.230.0110.00717.02
7.3.210.0080.01316.73
7.3.200.0000.01716.69
7.3.190.0150.00616.67
7.3.180.0090.00616.77
7.3.170.0080.00916.84
7.3.160.0130.00716.80
7.3.120.0090.00615.17
7.2.330.0130.01016.87
7.2.320.0110.00616.88
7.2.310.0090.00916.77
7.2.300.0030.01316.77
7.2.290.0090.00917.06
7.2.60.0130.00316.89
7.2.50.0030.00617.21
7.2.00.0000.01419.29
7.1.200.0140.00015.82
7.1.70.0030.00717.38
7.1.60.0130.01019.30
7.1.50.0100.01016.93
7.1.00.0030.06722.54
7.0.200.0060.00616.68
7.0.140.0000.07022.21
7.0.120.0030.07322.30
7.0.60.0070.06020.06
7.0.50.0030.08318.10
7.0.40.0070.06020.57
7.0.30.0230.04020.32
7.0.20.0270.08020.41
7.0.10.0130.04020.42
7.0.00.0100.08720.32
5.6.280.0100.07021.26
5.6.210.0130.07720.76
5.6.200.0100.07718.37
5.6.190.0000.06720.57
5.6.180.4070.04720.51
5.6.170.0270.06720.74
5.6.160.0000.07320.79
5.6.150.0030.04318.29
5.6.140.0070.06718.36
5.6.130.0070.09018.34
5.6.120.0070.06721.32
5.6.110.0070.04321.27
5.6.100.0130.08021.13
5.6.90.0100.08321.16
5.6.80.0070.04020.68
5.6.70.3100.03320.59
5.5.350.0130.08320.69
5.5.340.0030.04018.19
5.5.330.0070.04720.66
5.5.320.4000.03720.39
5.5.310.0130.05320.66
5.5.300.0070.07718.16
5.5.290.0170.07018.18
5.5.280.0130.08020.95
5.5.270.0170.07020.93
5.5.260.0030.08021.18
5.5.250.0100.05020.84
5.5.240.0330.06720.21
5.4.450.0130.07319.74
5.4.440.0100.08019.35
5.4.430.0070.06719.64
5.4.420.0070.05019.64
5.4.410.0100.07019.16
5.4.400.0030.06019.20
5.4.390.0100.07319.41
5.4.380.0130.07718.99
5.4.370.0100.04319.33
5.4.360.0030.05019.32
5.4.350.0100.07319.41
5.4.340.0030.05719.39
5.4.320.0100.07719.41
5.4.310.0100.04718.96
5.4.300.0070.03719.25
5.4.290.0030.03718.96
5.4.280.0070.04719.11
5.4.270.0000.07719.15
5.4.260.0030.07719.38
5.4.250.0100.05019.02
5.4.240.0130.07319.41
5.4.230.0000.05719.42
5.4.220.0100.03319.32
5.4.210.0100.06719.18
5.4.200.0100.07319.14
5.4.190.0030.06019.17
5.4.180.0100.04019.41
5.4.170.0070.04318.94
5.4.160.0170.06719.15
5.4.150.0130.07019.46
5.4.140.0170.05716.71
5.4.130.0070.07316.46
5.4.120.0100.04016.55
5.4.110.0170.02716.59
5.4.100.0170.06016.58
5.4.90.0070.05316.52
5.4.80.0130.06016.50
5.4.70.0000.07316.62
5.4.60.0100.06716.69
5.4.50.0100.04716.57
5.4.40.0130.06716.85
5.4.30.0070.03316.59
5.4.20.0130.06316.56
5.4.10.0070.07716.49
5.4.00.0070.05315.96
5.3.290.0000.05714.90
5.3.280.0100.07314.73
5.3.270.0100.05714.66
5.3.260.0130.04014.77
5.3.250.0030.08014.80
5.3.240.0100.04314.84
5.3.230.0170.05314.73
5.3.220.0100.05314.71
5.3.210.0070.04714.73
5.3.200.0130.06314.73
5.3.190.0170.04014.69
5.3.180.0070.04014.73
5.3.170.0030.06714.82
5.3.160.0100.07014.75
5.3.150.0070.04714.59
5.3.140.0100.07314.77
5.3.130.0000.04314.64
5.3.120.0130.07314.68
5.3.110.0100.07314.66
5.3.100.0100.03714.20
5.3.90.0030.07714.26
5.3.80.0130.05014.03
5.3.70.0030.05714.24
5.3.60.0070.03714.14
5.3.50.0030.04014.16
5.3.40.0030.05714.09
5.3.30.0070.07013.90
5.3.20.0030.04313.71
5.3.10.0030.04013.77
5.3.00.0030.03713.66
5.2.170.0100.02311.28
5.2.160.0070.02711.34
5.2.150.0000.06711.33
5.2.140.0000.04311.32
5.2.130.0030.04311.24
5.2.120.0070.03311.28
5.2.110.0030.03011.36
5.2.100.0030.03011.24
5.2.90.0000.04311.43
5.2.80.0100.05011.26
5.2.70.0030.07011.23
5.2.60.0100.05711.14
5.2.50.0070.05711.20
5.2.40.0070.03311.23
5.2.30.0030.03311.29
5.2.20.0030.06011.06
5.2.10.0030.04311.12
5.2.00.0030.03310.96
5.1.60.0000.04710.25
5.1.50.0030.03010.28
5.1.40.0000.04710.25
5.1.30.0030.03010.45
5.1.20.0100.05310.63
5.1.10.0030.06010.32
5.1.00.0130.03010.34
5.0.50.0030.0378.70
5.0.40.0070.0238.57
5.0.30.0030.0638.24
5.0.20.0000.0378.20
5.0.10.0000.0238.33
5.0.00.0030.0438.32
4.4.90.0030.0378.09
4.4.80.0030.0378.09
4.4.70.0070.0308.09
4.4.60.0100.0278.09
4.4.50.0030.0308.09
4.4.40.0000.0338.09
4.4.30.0000.0378.09
4.4.20.0030.0338.09
4.4.10.0070.0278.09
4.4.00.0000.0508.09
4.3.110.0030.0378.09
4.3.100.0000.0238.09
4.3.90.0000.0408.09
4.3.80.0000.0338.09
4.3.70.0030.0238.09
4.3.60.0030.0138.09
4.3.50.0070.0338.09
4.3.40.0100.0438.09
4.3.30.0000.0408.09
4.3.20.0000.0378.09
4.3.10.0000.0378.09
4.3.00.0070.0208.09

preferences:
44.98 ms | 400 KiB | 5 Q