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.60.0070.01416.88
8.3.50.0090.01022.14
8.3.40.0110.00419.17
8.3.30.0070.00719.31
8.3.20.0030.00520.77
8.3.10.0040.00423.81
8.3.00.0030.00519.51
8.2.180.0140.00516.75
8.2.170.0110.01122.96
8.2.160.0100.00320.90
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0030.00521.04
8.2.110.0060.00322.39
8.2.100.0060.00619.85
8.2.90.0040.00419.33
8.2.80.0030.00517.97
8.2.70.0060.00317.75
8.2.60.0040.00718.41
8.2.50.0060.00318.07
8.2.40.0040.00421.49
8.2.30.0040.00418.53
8.2.20.0000.00817.97
8.2.10.0060.00318.49
8.2.00.0000.00818.05
8.1.280.0030.01425.92
8.1.270.0040.00424.46
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0100.00022.63
8.1.230.0060.00619.65
8.1.220.0000.00818.15
8.1.210.0000.00818.77
8.1.200.0060.00317.60
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0030.00619.15
8.1.160.0000.00722.32
8.1.150.0070.00019.01
8.1.140.0050.00317.82
8.1.130.0070.00018.16
8.1.120.0030.00517.69
8.1.110.0040.00417.75
8.1.100.0070.00017.73
8.1.90.0040.00417.69
8.1.80.0000.00817.73
8.1.70.0000.00717.84
8.1.60.0040.00418.03
8.1.50.0030.00517.97
8.1.40.0000.00817.73
8.1.30.0000.00917.89
8.1.20.0040.00418.07
8.1.10.0000.00817.83
8.1.00.0000.00917.89
8.0.300.0000.00718.77
8.0.290.0000.00717.54
8.0.280.0040.00418.75
8.0.270.0030.00317.59
8.0.260.0030.00317.62
8.0.250.0030.00317.32
8.0.240.0040.00417.40
8.0.230.0000.00817.20
8.0.220.0030.00517.13
8.0.210.0000.00717.44
8.0.200.0000.00617.29
8.0.190.0000.00917.29
8.0.180.0060.00317.46
8.0.170.0050.00217.16
8.0.160.0000.00817.13
8.0.150.0000.00717.40
8.0.140.0000.00817.30
8.0.130.0000.00513.59
8.0.120.0000.00817.29
8.0.110.0020.00517.14
8.0.100.0000.00717.15
8.0.90.0000.00717.22
8.0.80.0110.00417.29
8.0.70.0070.00017.30
8.0.60.0020.00517.22
8.0.50.0080.00017.26
8.0.30.0120.00917.41
8.0.20.0090.00917.64
8.0.10.0050.00317.39
8.0.00.0080.01417.17
7.4.330.0030.00315.38
7.4.320.0040.00416.88
7.4.300.0030.00316.92
7.4.290.0050.00316.95
7.4.280.0080.00016.94
7.4.270.0040.00417.02
7.4.260.0040.00416.80
7.4.250.0000.00716.80
7.4.240.0000.00716.91
7.4.230.0030.00516.91
7.4.220.0110.00716.89
7.4.210.0070.00816.97
7.4.200.0000.00716.91
7.4.190.0030.00316.85
7.4.160.0060.01016.87
7.4.150.0070.01117.40
7.4.140.0120.00717.86
7.4.130.0130.00516.98
7.4.120.0080.00917.02
7.4.110.0090.00916.95
7.4.100.0090.00916.87
7.4.90.0130.00316.95
7.4.80.0120.01219.39
7.4.70.0130.00316.79
7.4.60.0070.01016.93
7.4.50.0030.00516.75
7.4.40.0130.00316.82
7.4.30.0110.00516.95
7.4.10.0000.01815.00
7.4.00.0090.00715.20
7.3.330.0050.00013.34
7.3.320.0030.00313.63
7.3.310.0000.00716.65
7.3.300.0000.00716.68
7.3.290.0110.00816.62
7.3.280.0110.00816.68
7.3.270.0060.01517.40
7.3.260.0030.01416.61
7.3.250.0100.01216.91
7.3.240.0100.00716.88
7.3.230.0040.01416.86
7.3.210.0130.00616.59
7.3.200.0060.01219.39
7.3.190.0140.00516.76
7.3.180.0000.01716.74
7.3.170.0030.01416.70
7.3.160.0030.01216.69
7.3.130.0100.00614.87
7.3.120.0040.01115.00
7.3.110.0080.00815.19
7.3.100.0070.00714.88
7.3.90.0070.00315.11
7.3.80.0030.00615.08
7.3.70.0030.01314.93
7.3.60.0030.01415.03
7.3.50.0000.01315.01
7.3.40.0000.01015.01
7.3.30.0040.01414.87
7.3.20.0070.01016.94
7.3.10.0080.01016.93
7.3.00.0080.00716.73
7.2.330.0030.01616.93
7.2.320.0100.00716.82
7.2.310.0060.01617.13
7.2.300.0120.00916.99
7.2.290.0000.01916.97
7.2.260.0060.01015.32
7.2.250.0090.00915.36
7.2.240.0100.00315.13
7.2.230.0060.00915.01
7.2.220.0070.00714.92
7.2.210.0070.00415.16
7.2.200.0030.01015.22
7.2.190.0040.01115.23
7.2.180.0140.00315.41
7.2.170.0000.01015.02
7.2.160.0070.00715.41
7.2.150.0100.01016.95
7.2.140.0070.01316.87
7.2.130.0050.00916.96
7.2.120.0090.00716.84
7.2.110.0080.00717.13
7.2.100.0110.00617.13
7.2.90.0060.00917.21
7.2.80.0040.00817.13
7.2.70.0030.01217.07
7.2.60.0030.01017.02
7.2.50.0000.01217.11
7.2.40.0050.00817.02
7.2.30.0060.00817.22
7.2.20.0050.00717.05
7.2.10.0050.01017.22
7.2.00.0090.00618.01
7.1.330.0030.01016.03
7.1.320.0070.00715.81
7.1.310.0040.01115.77
7.1.300.0030.01415.64
7.1.290.0030.01216.10
7.1.280.0080.00315.77
7.1.270.0000.01315.84
7.1.260.0060.00615.74
7.1.250.0080.00415.80
7.1.240.0060.00916.04
7.1.230.0040.01515.94
7.1.220.0000.00915.81
7.1.210.0040.00915.70
7.1.200.0070.00616.00
7.1.190.0040.00716.13
7.1.180.0060.00616.14
7.1.170.0110.00415.87
7.1.160.0100.00316.12
7.1.150.0070.00716.16
7.1.140.0040.00816.03
7.1.130.0030.00615.70
7.1.120.0000.01715.75
7.1.110.0030.01315.88
7.1.100.0040.00816.95
7.1.90.0080.00815.90
7.1.80.0000.01415.83
7.1.70.0020.00816.56
7.1.60.0110.00517.66
7.1.50.0060.01216.70
7.1.40.0060.00916.10
7.1.30.0040.01115.77
7.1.20.0070.00716.04
7.1.10.0060.00615.70
7.1.00.0060.03819.21
7.0.330.0000.01115.54
7.0.320.0030.01015.51
7.0.310.0140.00015.36
7.0.300.0040.00715.72
7.0.290.0030.01015.55
7.0.280.0000.01315.47
7.0.270.0040.01215.68
7.0.260.0060.01015.38
7.0.250.0100.00015.52
7.0.240.0030.01015.50
7.0.230.0060.00615.45
7.0.220.0070.00715.68
7.0.210.0040.01115.46
7.0.200.0060.00416.34
7.0.190.0070.00715.89
7.0.180.0100.00315.54
7.0.170.0000.01315.56
7.0.160.0030.00615.82
7.0.150.0060.00615.61
7.0.140.0050.04218.96
7.0.130.0030.01315.77
7.0.120.0070.00315.42
7.0.110.0060.00615.56
7.0.100.0040.01015.60
7.0.90.0030.00515.46
7.0.80.0060.00315.74
7.0.70.0040.04918.70
7.0.60.0050.04218.80
7.0.50.0040.04418.98
7.0.40.0060.04616.90
7.0.30.0050.03717.04
7.0.20.0050.02616.95
7.0.10.0080.04016.97
7.0.00.0040.02416.85
5.6.400.0070.00714.38
5.6.390.0040.01114.37
5.6.380.0090.00314.55
5.6.370.0070.00414.71
5.6.360.0040.01114.32
5.6.350.0040.01114.69
5.6.340.0090.00614.46
5.6.330.0140.00014.50
5.6.320.0000.01214.89
5.6.310.0070.01114.50
5.6.300.0100.00314.28
5.6.290.0070.00714.09
5.6.280.0050.04117.88
5.6.270.0060.00314.30
5.6.260.0100.00014.28
5.6.250.0070.00714.36
5.6.240.0080.00614.57
5.6.230.0090.00614.41
5.6.220.0020.04517.75
5.6.210.0100.03017.60
5.6.200.0080.03817.72
5.6.190.0050.04517.88
5.6.180.0030.02917.78
5.6.170.0040.04317.92
5.6.160.0020.03517.96
5.6.150.0040.02317.75
5.6.140.0050.02317.86
5.6.130.0040.02317.95
5.6.120.0050.03517.85
5.6.110.0070.02317.81
5.6.100.0030.04517.83
5.6.90.0050.02517.73
5.6.80.0030.04517.43
5.6.70.0030.04517.47
5.6.60.0070.04317.42
5.6.50.0000.02517.57
5.6.40.0020.02517.53
5.6.30.0020.02717.46
5.6.20.0050.02017.44
5.6.10.0040.02117.51
5.6.00.0000.02617.64
5.5.380.0030.01014.55
5.5.370.0100.00314.62
5.5.360.0030.03817.55
5.5.350.0070.04317.50
5.5.340.0030.03517.80
5.5.330.0080.04417.77
5.5.320.0070.04217.77
5.5.310.0030.03017.56
5.5.300.0050.02517.64
5.5.290.0030.02717.79
5.5.280.0100.02017.79
5.5.270.0080.02017.65
5.5.260.0030.02517.73
5.5.250.0060.04517.68
5.5.240.0080.03717.38
5.5.230.0070.04517.45
5.5.220.0070.04117.29
5.5.210.0030.03817.41
5.5.200.0040.02617.35
5.5.190.0050.02417.45
5.5.180.0050.02217.36
5.5.170.0100.00314.51
5.5.160.0100.03017.48
5.5.150.0030.02317.23
5.5.140.0010.02617.40
5.5.130.0040.02217.37
5.5.120.0030.02017.43
5.5.110.0030.02217.39
5.5.100.0000.02817.13
5.5.90.0050.02017.44
5.5.80.0080.02317.42
5.5.70.0070.02217.25
5.5.60.0050.02017.40
5.5.50.0070.01817.30
5.5.40.0070.01817.27
5.5.30.0040.02117.19
5.5.20.0070.02017.19
5.5.10.0060.01717.26
5.5.00.0020.02717.26
5.4.450.0040.02115.39
5.4.440.0070.03815.12
5.4.430.0050.02015.46
5.4.420.0050.02315.31
5.4.410.0040.03215.30
5.4.400.0030.03514.95
5.4.390.0080.03515.12
5.4.380.0050.03615.12
5.4.370.0070.02015.23
5.4.360.0030.02915.19
5.4.350.0050.02215.25
5.4.340.0020.03315.26
5.4.330.0060.00310.98
5.4.320.0040.01915.22
5.4.310.0050.02014.98
5.4.300.0030.01815.04
5.4.290.0020.01915.20
5.4.280.0020.03515.14
5.4.270.0030.02815.09
5.4.260.0050.01815.13
5.4.250.0030.02215.06
5.4.240.0050.01515.04
5.4.230.0020.02215.13
5.4.220.0030.02015.33
5.4.210.0030.02315.25
5.4.200.0030.02115.16
5.4.190.0000.02215.18
5.4.180.0070.01815.32
5.4.170.0000.02315.07
5.4.160.0020.02015.17
5.4.150.0000.02515.14
5.4.140.0030.02013.77
5.4.130.0030.02013.81
5.4.120.0020.01813.78
5.4.110.0000.04213.87
5.4.100.0000.01913.94
5.4.90.0050.02613.98
5.4.80.0010.02113.91
5.4.70.0020.02013.77
5.4.60.0020.02313.88
5.4.50.0030.02313.99
5.4.40.0050.02113.78
5.4.30.0040.01913.97
5.4.20.0000.02413.81
5.4.10.0020.02513.84
5.4.00.0080.01513.52
5.3.290.0000.02512.77
5.3.280.0020.02412.61
5.3.270.0050.02012.73
5.3.260.0030.02212.69
5.3.250.0010.01912.73
5.3.240.0050.01712.72
5.3.230.0050.03212.59
5.3.220.0080.01312.57
5.3.210.0060.01612.68
5.3.200.0020.02112.46
5.3.190.0050.02112.70
5.3.180.0040.02912.66
5.3.170.0030.02112.61
5.3.160.0040.02212.71
5.3.150.0040.02012.55
5.3.140.0070.02012.67
5.3.130.0060.03612.67
5.3.120.0020.02512.59
5.3.110.0060.02312.52
5.3.100.0030.02312.38
5.3.90.0000.02412.31
5.3.80.0020.02312.40
5.3.70.0020.02412.31
5.3.60.0030.02112.33
5.3.50.0050.01812.23
5.3.40.0040.02112.17
5.3.30.0000.02112.27
5.3.20.0030.03812.31
5.3.10.0000.04112.03
5.3.00.0060.03212.06
5.2.170.0000.03013.05
5.2.160.0030.02713.05
5.2.150.0000.03013.05
5.2.140.0030.04013.05
5.2.130.0000.04013.05
5.2.120.0000.06713.05
5.2.110.0000.03713.05
5.2.100.0000.05313.05
5.2.90.0030.05713.05
5.2.80.0000.06713.05
5.2.70.0030.05713.05
5.2.60.0030.06013.05
5.2.50.0100.05713.05
5.2.40.0100.06013.05
5.2.30.0130.05313.05
5.2.20.0030.05313.05
5.2.10.0030.06013.05
5.2.00.0070.06013.05
5.1.60.0070.05313.05
5.1.50.0030.05013.05
5.1.40.0030.05313.05
5.1.30.0100.05013.05
5.1.20.0070.05713.05
5.1.10.0030.05713.05
5.1.00.0030.05713.05
5.0.50.0070.04313.05
5.0.40.0030.03313.05
5.0.30.0030.05713.05
5.0.20.0030.02313.05
5.0.10.0030.04313.05
5.0.00.0000.06713.05
4.4.90.0070.03013.05
4.4.80.0070.02713.05
4.4.70.0000.04013.05
4.4.60.0000.03713.05
4.4.50.0030.03313.05
4.4.40.0030.05313.05
4.4.30.0000.02313.05
4.4.20.0000.03713.05
4.4.10.0030.02713.05
4.4.00.0000.05313.05
4.3.110.0000.04313.05
4.3.100.0000.03713.05
4.3.90.0030.03313.05
4.3.80.0000.05313.05
4.3.70.0070.03013.05
4.3.60.0030.03013.05
4.3.50.0000.03713.05
4.3.40.0000.05713.05
4.3.30.0000.03713.05
4.3.20.0030.03713.05
4.3.10.0000.03013.05
4.3.00.0030.02713.05

preferences:
45.01 ms | 401 KiB | 5 Q