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.70.0120.00317.00
8.3.60.0030.01217.25
8.3.50.0070.01117.83
8.3.40.0120.00319.13
8.3.30.0090.00918.92
8.3.20.0050.00318.90
8.3.10.0060.00320.79
8.3.00.0050.00319.38
8.2.180.0110.01119.04
8.2.170.0070.00722.96
8.2.160.0110.00719.18
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00019.02
8.2.110.0070.00322.63
8.2.100.0080.00318.28
8.2.90.0040.00419.46
8.2.80.0080.00018.17
8.2.70.0000.00817.62
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0030.00618.34
8.2.30.0000.00821.62
8.2.20.0090.00017.93
8.2.10.0040.00418.11
8.2.00.0040.00417.87
8.1.280.0180.00425.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.01121.87
8.1.230.0040.00821.34
8.1.220.0080.00018.77
8.1.210.0040.00419.47
8.1.200.0090.00017.50
8.1.190.0080.00017.90
8.1.180.0050.00318.10
8.1.170.0040.00419.09
8.1.160.0040.00419.25
8.1.150.0030.00518.95
8.1.140.0000.00717.88
8.1.130.0070.00018.29
8.1.120.0090.00017.91
8.1.110.0000.00817.70
8.1.100.0050.00217.89
8.1.90.0040.00417.91
8.1.80.0000.00717.71
8.1.70.0040.00417.88
8.1.60.0080.00018.05
8.1.50.0040.00417.85
8.1.40.0040.00417.98
8.1.30.0030.00518.08
8.1.20.0030.00517.91
8.1.10.0040.00417.87
8.1.00.0040.00417.80
8.0.300.0060.00320.44
8.0.290.0000.00717.55
8.0.280.0040.00418.87
8.0.270.0030.00317.26
8.0.260.0060.00017.35
8.0.250.0040.00417.48
8.0.240.0070.00017.21
8.0.230.0060.00017.27
8.0.220.0000.00817.41
8.0.210.0000.00717.18
8.0.200.0000.00717.45
8.0.190.0040.00417.46
8.0.180.0000.00717.39
8.0.170.0060.00317.16
8.0.160.0070.00017.41
8.0.150.0080.00017.08
8.0.140.0040.00417.39
8.0.130.0000.00513.77
8.0.120.0040.00417.14
8.0.110.0050.00217.29
8.0.100.0040.00417.18
8.0.90.0000.00717.32
8.0.80.0100.00617.24
8.0.70.0000.00717.29
8.0.60.0050.00317.22
8.0.50.0000.00817.31
8.0.30.0070.01317.35
8.0.20.0130.00617.39
8.0.10.0070.00017.35
8.0.00.0100.01017.15
7.4.330.0000.00513.41
7.4.320.0030.00316.88
7.4.300.0050.00316.88
7.4.290.0000.00716.99
7.4.280.0000.00816.94
7.4.270.0030.00316.84
7.4.260.0080.00016.89
7.4.250.0040.00417.00
7.4.240.0050.00316.93
7.4.230.0030.00317.08
7.4.220.0140.00317.02
7.4.210.0030.01717.08
7.4.200.0080.00016.89
7.4.190.0040.00416.85
7.4.160.0000.01616.95
7.4.150.0140.00816.76
7.4.140.0030.01316.70
7.4.130.0120.00617.07
7.4.120.0160.00016.89
7.4.110.0070.01116.80
7.4.100.0200.00416.86
7.4.90.0180.00016.94
7.4.80.0120.00616.80
7.4.70.0070.01016.82
7.4.60.0100.00616.89
7.4.50.0020.00216.77
7.4.40.0150.00416.62
7.4.30.0120.00616.92
7.4.00.0060.00614.82
7.3.330.0060.00013.56
7.3.320.0060.00013.43
7.3.310.0030.00316.38
7.3.300.0030.00316.50
7.3.290.0080.00616.63
7.3.280.0150.00416.59
7.3.270.0040.01316.73
7.3.260.0170.00716.73
7.3.250.0080.01016.80
7.3.240.0100.00716.85
7.3.230.0160.00016.54
7.3.210.0120.00916.66
7.3.200.0070.00619.39
7.3.190.0120.00716.60
7.3.180.0100.00616.66
7.3.170.0100.00616.97
7.3.160.0100.00616.67
7.3.120.0070.00714.88
7.2.330.0030.01316.90
7.2.320.0140.00416.92
7.2.310.0120.00617.04
7.2.300.0120.00616.86
7.2.290.0120.00917.11
7.2.80.0000.01016.95
7.2.60.0040.00417.13
7.2.00.0000.01519.60
7.1.200.0030.01015.77
7.1.100.0040.00818.13
7.1.70.0040.00717.20
7.1.60.0030.02119.31
7.1.50.0000.01717.10
7.1.00.0100.07322.53
7.0.200.0030.00616.59
7.0.140.0100.06722.24
7.0.120.0000.07722.44
7.0.60.0100.07020.14
7.0.50.0070.04018.05
7.0.40.0030.08020.50
7.0.30.0300.07720.22
7.0.20.0300.07320.24
7.0.10.0330.08020.23
7.0.00.0170.06720.48
5.6.280.0000.08021.13
5.6.210.0130.07020.79
5.6.200.0070.05018.39
5.6.190.0100.05720.94
5.6.180.0170.04320.92
5.6.170.0270.06020.74
5.6.160.0070.04720.73
5.6.150.0030.08718.42
5.6.140.0130.03318.35
5.6.130.0100.03718.31
5.6.120.0100.06721.19
5.6.110.0100.03321.15
5.6.100.0100.08321.18
5.6.90.0200.05321.20
5.6.80.0130.07320.54
5.6.70.0270.04720.52
5.5.350.0330.05020.58
5.5.340.0170.07018.12
5.5.330.0030.04720.73
5.5.320.0270.07320.70
5.5.310.0330.07320.41
5.5.300.0030.04018.19
5.5.290.0100.07018.18
5.5.280.0100.05320.94
5.5.270.0130.07720.97
5.5.260.0130.07321.15
5.5.250.0100.07721.00
5.5.240.0170.06720.36
5.4.450.3400.03719.70
5.4.440.4270.04019.41
5.4.430.3770.04019.38
5.4.420.2970.03319.42
5.4.410.3270.04019.67
5.4.400.4200.04719.48
5.4.390.3700.03319.43
5.4.380.3800.03719.39
5.4.370.4230.04019.33
5.4.360.3670.03719.34
5.4.350.4270.03319.34
5.4.340.3570.05019.25
5.4.320.3400.03019.09
5.4.310.3670.04319.26
5.4.300.3370.03719.30
5.4.290.4270.03719.11
5.4.280.4370.03719.26
5.4.270.3930.03719.16
5.4.260.3270.04319.09
5.4.250.3730.03019.32
5.4.240.4530.05019.10
5.4.230.4400.03019.16
5.4.220.3600.03719.23
5.4.210.3370.04319.09
5.4.200.3670.03019.21
5.4.190.3430.03319.32
5.4.180.3370.04019.24
5.4.170.3300.04319.10
5.4.160.3300.04019.30
5.4.150.3400.03319.29
5.4.140.2530.03716.65
5.4.130.3330.03716.60
5.4.120.3100.03716.40
5.4.110.3800.04716.70
5.4.100.3670.03316.73
5.4.90.3330.03316.68
5.4.80.3570.03316.69
5.4.70.3330.02716.70
5.4.60.3830.04016.53
5.4.50.3570.03316.52
5.4.40.3530.04016.32
5.4.30.3670.03016.50
5.4.20.3500.03716.52
5.4.10.3570.04016.71
5.4.00.3630.03315.97
5.3.290.3370.03714.87
5.3.280.3670.03314.89
5.3.270.3330.04014.73
5.3.260.3170.03314.66
5.3.250.3430.03314.69
5.3.240.3430.03014.73
5.3.230.3430.03714.80
5.3.220.2930.02714.66
5.3.210.3400.02714.65
5.3.200.3870.03714.64
5.3.190.3570.04314.69
5.3.180.3300.03314.64
5.3.170.3600.03314.84
5.3.160.3570.03314.68
5.3.150.3730.04714.66
5.3.140.3770.03014.64
5.3.130.3630.03714.59
5.3.120.3600.04014.63
5.3.110.4330.03014.75
5.3.100.3730.03014.25
5.3.90.3600.03714.14
5.3.80.3470.03714.30
5.3.70.3530.03714.13
5.3.60.3570.02714.28
5.3.50.3870.05014.04
5.3.40.3370.03014.03
5.3.30.3530.03013.93
5.3.20.3870.04313.89
5.3.10.3400.03313.73
5.3.00.3570.04013.90
5.2.170.3130.03011.42
5.2.160.2930.03011.24
5.2.150.3100.02711.23
5.2.140.2870.03311.24
5.2.130.3300.03011.19
5.2.120.3100.02711.33
5.2.110.3000.03311.18
5.2.100.3230.03011.44
5.2.90.3070.03011.28
5.2.80.3230.02711.44
5.2.70.3300.02711.45
5.2.60.2870.03011.13
5.2.50.3030.03011.35
5.2.40.2530.02711.23
5.2.30.2600.02711.09
5.2.20.2570.02311.18
5.2.10.1900.03011.21
5.2.00.2830.03011.00
5.1.60.2570.02310.38
5.1.50.3030.02010.38
5.1.40.2970.02310.38
5.1.30.3000.02310.60
5.1.20.2700.02710.48
5.1.10.2730.01710.38
5.1.00.2800.03010.38
5.0.50.1300.03010.38
5.0.40.1170.01310.38
5.0.30.1070.03710.38
5.0.20.1270.02010.38
5.0.10.1370.02310.38
5.0.00.1470.03010.38
4.4.90.1430.01710.38
4.4.80.1130.01310.38
4.4.70.1570.01310.38
4.4.60.1530.01310.38
4.4.50.1330.02010.38
4.4.40.1800.03010.38
4.4.30.1570.01710.38
4.4.20.1600.01710.38
4.4.10.0530.02710.38
4.4.00.1470.02310.38
4.3.110.1270.01710.38
4.3.100.1400.01010.38
4.3.90.1130.01310.38
4.3.80.1170.02310.38
4.3.70.1300.02010.38
4.3.60.1370.01710.41
4.3.50.1230.01310.42
4.3.40.1370.02710.42
4.3.30.0970.02010.42
4.3.20.0930.02010.42
4.3.10.0900.02310.42
4.3.00.0770.01310.42

preferences:
48.04 ms | 401 KiB | 5 Q