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.70.0000.01518.66
8.3.60.0090.00617.38
8.3.50.0120.00317.83
8.3.40.0150.00018.85
8.3.30.0160.00718.96
8.3.20.0080.00018.98
8.3.10.0060.00320.73
8.3.00.0000.00819.63
8.2.180.0150.00018.68
8.2.170.0100.00722.96
8.2.160.0070.00721.54
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00519.98
8.2.110.0030.00721.52
8.2.100.0080.00418.28
8.2.90.0000.00921.59
8.2.80.0080.00018.40
8.2.70.0060.00317.88
8.2.60.0030.00518.41
8.2.50.0060.00318.07
8.2.40.0080.00018.53
8.2.30.0070.00418.50
8.2.20.0000.00717.93
8.2.10.0020.00517.99
8.2.00.0030.00618.13
8.1.280.0070.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00722.92
8.1.230.0040.00721.20
8.1.220.0050.00318.04
8.1.210.0050.00319.29
8.1.200.0070.00317.85
8.1.190.0050.00318.03
8.1.180.0090.00018.10
8.1.170.0040.00419.25
8.1.160.0020.00519.09
8.1.150.0000.00819.05
8.1.140.0000.00817.88
8.1.130.0030.00318.25
8.1.120.0000.00717.93
8.1.110.0030.00517.88
8.1.100.0040.00417.71
8.1.90.0030.00817.92
8.1.80.0040.00417.90
8.1.70.0000.00717.65
8.1.60.0070.00017.79
8.1.50.0000.00817.85
8.1.40.0000.00817.95
8.1.30.0000.00918.05
8.1.20.0050.00318.12
8.1.10.0030.00517.91
8.1.00.0060.00317.89
8.0.300.0000.00720.43
8.0.290.0060.00317.25
8.0.280.0040.00418.75
8.0.270.0000.00817.66
8.0.260.0030.00317.32
8.0.250.0080.00017.39
8.0.240.0000.00817.22
8.0.230.0000.00817.48
8.0.220.0030.00617.20
8.0.210.0070.00017.41
8.0.200.0030.00317.19
8.0.190.0000.00717.25
8.0.180.0000.00717.26
8.0.170.0060.00317.14
8.0.160.0030.00317.19
8.0.150.0000.00817.35
8.0.140.0000.00917.18
8.0.130.0030.00313.68
8.0.120.0030.00517.37
8.0.110.0000.00717.38
8.0.100.0060.00317.30
8.0.90.0000.00817.23
8.0.80.0110.00917.11
8.0.70.0030.00517.39
8.0.60.0040.00417.26
8.0.50.0080.00017.28
8.0.30.0140.00617.62
8.0.20.0090.00917.58
8.0.10.0020.00517.29
8.0.00.0090.01717.27
7.4.330.0000.00513.33
7.4.320.0030.00316.92
7.4.300.0000.00616.84
7.4.290.0000.00716.81
7.4.280.0040.00416.88
7.4.270.0050.00316.92
7.4.260.0030.00313.77
7.4.250.0040.00416.84
7.4.240.0050.00317.00
7.4.230.0030.00316.91
7.4.220.0120.00616.96
7.4.210.0090.00716.89
7.4.200.0020.00516.89
7.4.190.0000.00716.87
7.4.160.0070.01016.89
7.4.150.0120.00616.80
7.4.140.0070.01216.74
7.4.130.0080.00916.85
7.4.120.0140.00416.86
7.4.110.0060.01217.11
7.4.100.0070.01016.84
7.4.90.0070.01116.85
7.4.80.0140.00619.39
7.4.70.0030.01316.82
7.4.60.0090.01216.83
7.4.50.0050.00016.77
7.4.40.0060.00916.70
7.4.30.0100.00616.82
7.4.10.0100.01015.14
7.4.00.0080.00815.14
7.3.330.0060.00013.21
7.3.320.0000.00513.60
7.3.310.0040.00416.36
7.3.300.0030.00316.48
7.3.290.0000.01516.65
7.3.280.0110.00816.51
7.3.270.0070.01016.41
7.3.260.0080.01116.73
7.3.250.0100.01216.63
7.3.240.0120.00916.97
7.3.230.0080.01116.54
7.3.210.0060.01216.69
7.3.200.0030.01416.75
7.3.190.0070.01416.66
7.3.180.0030.01316.70
7.3.170.0000.01816.83
7.3.160.0090.00616.68
7.3.130.0060.01015.11
7.3.120.0050.01114.92
7.3.110.0080.00814.89
7.3.100.0070.00914.99
7.3.90.0080.00614.97
7.3.80.0060.00814.91
7.3.70.0070.00514.94
7.3.60.0050.01014.89
7.3.50.0030.00814.69
7.3.40.0060.00814.85
7.3.30.0020.01514.96
7.3.20.0050.00616.67
7.3.10.0030.00916.66
7.3.00.0040.00916.76
7.2.330.0070.01117.16
7.2.320.0040.01816.89
7.2.310.0070.01416.90
7.2.300.0030.01417.13
7.2.290.0040.01416.80
7.2.260.0130.00615.07
7.2.250.0070.01214.95
7.2.240.0060.01015.10
7.2.230.0020.01515.03
7.2.220.0100.00615.15
7.2.210.0060.00614.93
7.2.200.0040.00915.07
7.2.190.0030.01215.26
7.2.180.0050.00415.29
7.2.170.0040.01115.01
7.2.160.0040.01315.07
7.2.150.0040.01017.02
7.2.140.0060.00817.10
7.2.130.0080.00817.07
7.2.120.0080.00517.00
7.2.110.0000.01117.00
7.2.100.0080.00717.21
7.2.90.0070.01117.06
7.2.80.0020.01116.87
7.2.70.0030.01017.03
7.2.60.0030.01017.14
7.2.50.0060.01117.03
7.2.40.0040.01216.91
7.2.30.0060.00816.98
7.2.20.0070.01117.00
7.2.10.0020.01017.13
7.2.00.0090.00817.73
7.1.330.0100.00615.86
7.1.320.0110.00515.89
7.1.310.0050.01215.92
7.1.300.0080.00615.58
7.1.290.0040.00615.70
7.1.280.0040.01115.84
7.1.270.0050.00715.85
7.1.260.0030.00815.90
7.1.250.0050.01015.90
7.1.240.0070.00815.80
7.1.230.0060.00715.90
7.1.220.0060.00415.70
7.1.210.0040.01315.79
7.1.200.0060.00715.71
7.1.190.0090.00515.76
7.1.180.0070.00715.87
7.1.170.0020.01615.81
7.1.160.0090.00415.80
7.1.150.0040.00915.61
7.1.140.0050.00615.97
7.1.130.0050.00715.75
7.1.120.0070.00716.03
7.1.110.0080.00515.94
7.1.100.0050.01016.58
7.1.90.0060.00615.89
7.1.80.0050.00615.85
7.1.70.0050.00516.15
7.1.60.0070.01116.89
7.1.50.0040.00916.36
7.1.40.0050.00815.90
7.1.30.0020.01215.83
7.1.20.0070.00715.83
7.1.10.0100.00515.59
7.1.00.0050.02718.21
7.0.330.0050.00915.37
7.0.320.0060.00615.52
7.0.310.0060.00515.42
7.0.300.0080.00615.57
7.0.290.0070.00615.57
7.0.280.0080.00515.52
7.0.270.0030.00715.62
7.0.260.0050.00815.51
7.0.250.0110.00315.71
7.0.240.0050.00815.64
7.0.230.0060.00915.42
7.0.220.0080.00615.63
7.0.210.0080.00315.56
7.0.200.0250.00915.23
7.0.190.0020.00815.47
7.0.180.0050.00515.66
7.0.170.0050.00915.73
7.0.160.0080.00515.55
7.0.150.0050.00915.52
7.0.140.0060.03117.70
7.0.130.0060.00815.58
7.0.120.0060.02817.78
7.0.110.0050.00815.53
7.0.100.0020.01215.60
7.0.90.0050.00915.77
7.0.80.0020.00915.50
7.0.70.0090.00415.54
7.0.60.0080.03217.12
7.0.50.0060.03416.46
7.0.40.0010.03815.83
7.0.30.0120.01815.84
7.0.20.0120.02215.79
7.0.10.0060.02115.78
7.0.00.0070.02815.82
5.6.400.0070.01014.50
5.6.390.0070.00514.53
5.6.380.0100.00814.44
5.6.370.0070.00314.69
5.6.360.0070.00914.77
5.6.350.0050.00714.55
5.6.340.0070.00614.49
5.6.330.0030.00914.37
5.6.320.0090.00514.58
5.6.310.0080.00814.51
5.6.300.0080.00814.60
5.6.290.0030.01414.39
5.6.280.0020.03316.72
5.6.270.0050.00714.46
5.6.260.0010.01314.41
5.6.250.0090.00514.72
5.6.240.0030.01214.52
5.6.230.0050.00714.34
5.6.220.0060.00614.47
5.6.210.0070.03216.53
5.6.200.0050.03415.84
5.6.190.0060.01916.64
5.6.180.0150.03316.58
5.6.170.0150.03316.62
5.6.160.0080.02916.55
5.6.150.0030.03315.77
5.6.140.0070.02915.88
5.6.130.0060.03015.75
5.6.120.0070.03516.72
5.6.110.0070.03016.79
5.6.100.0090.03016.74
5.6.90.0070.02916.69
5.6.80.0090.02616.63
5.6.70.1470.01916.47
5.6.60.0050.00714.22
5.6.50.0050.00814.13
5.6.40.0020.00814.38
5.6.30.0030.01214.28
5.6.20.0040.00814.25
5.6.10.0070.00414.37
5.6.00.0050.00914.55
5.5.380.0050.00814.39
5.5.370.0050.00514.53
5.5.360.0080.00614.58
5.5.350.0110.01816.39
5.5.340.0020.03515.70
5.5.330.0030.02116.44
5.5.320.0090.02316.53
5.5.310.0120.02316.40
5.5.300.0080.03015.68
5.5.290.0080.01815.82
5.5.280.0040.02316.52
5.5.270.0080.02816.63
5.5.260.0040.01916.64
5.5.250.0080.01716.60
5.5.240.0060.03316.31
5.5.230.0050.00914.24
5.5.220.0070.00914.44
5.5.210.0080.00614.40
5.5.200.0060.00614.24
5.5.190.0080.00714.24
5.5.180.0070.01014.22
5.5.170.0060.00614.35
5.5.160.0060.00914.23
5.5.150.0040.01214.28
5.5.140.0050.00814.38
5.5.130.0000.01414.54
5.5.120.0050.00714.10
5.5.110.0000.01414.29
5.5.100.0050.01014.51
5.5.90.0070.00614.39
5.5.80.0080.00314.31
5.5.70.0070.00414.37
5.5.60.0050.00914.17
5.5.50.0010.01314.29
5.5.40.0030.01014.31
5.5.30.0070.00814.29
5.5.20.0080.00714.31
5.5.10.0070.01014.46
5.5.00.0040.01014.36
5.4.450.0030.01815.38
5.4.440.0050.01515.29
5.4.430.0030.01515.33
5.4.420.0030.01815.33
5.4.410.0020.01615.23
5.4.400.0040.01815.24
5.4.390.0040.01615.24
5.4.380.0060.01515.22
5.4.370.0050.01415.21
5.4.360.0060.01615.25
5.4.350.0080.01315.12
5.4.340.0040.01815.12
5.4.330.0000.01213.17
5.4.320.0060.01615.22
5.4.310.0030.02115.24
5.4.300.0020.03115.24
5.4.290.0060.01915.24
5.4.280.0050.03115.25
5.4.270.0030.03015.24
5.4.260.0070.02315.17
5.4.250.0070.01715.13
5.4.240.0040.02815.24
5.4.230.0060.01915.16
5.4.220.0060.02415.24
5.4.210.0080.02915.15
5.4.200.0040.02415.24
5.4.190.0040.03015.25
5.4.180.0050.02015.22
5.4.170.0030.01615.18
5.4.160.0040.01615.18
5.4.150.0050.01715.23
5.4.140.0010.01814.32
5.4.130.0080.02414.35
5.4.120.0030.02214.32
5.4.110.0040.02914.30
5.4.100.0020.02514.42
5.4.90.0020.03014.32
5.4.80.0050.02814.33
5.4.70.0050.02014.31
5.4.60.0090.02514.33
5.4.50.0020.02214.32
5.4.40.0050.02414.28
5.4.30.0070.02414.32
5.4.20.0040.02714.31
5.4.10.0050.01914.34
5.4.00.0030.01814.13
5.3.290.0030.03113.78
5.3.280.0110.01613.74
5.3.270.0030.01813.72
5.3.260.0070.01713.72
5.3.250.0030.01913.71
5.3.240.0060.02513.73
5.3.230.0030.03013.72
5.3.220.0080.02613.73
5.3.210.0050.02113.67
5.3.200.0050.02713.73
5.3.190.0050.01513.67
5.3.180.0060.02613.66
5.3.170.0040.01713.71
5.3.160.0060.02813.70
5.3.150.0050.02013.72
5.3.140.0040.03013.73
5.3.130.0070.02413.73
5.3.120.0070.01513.70
5.3.110.0040.03113.70
5.3.100.0030.02913.53
5.3.90.0050.02213.56
5.3.80.0030.01913.49
5.3.70.0060.02413.54
5.3.60.0010.02113.53
5.3.50.0100.02513.53
5.3.40.0030.03013.49
5.3.30.0040.01913.50
5.3.20.0020.02513.43
5.3.10.0020.01813.42
5.3.00.0060.02713.39
5.2.170.0000.04011.48
5.2.160.0070.06011.45
5.2.150.0030.04311.48
5.2.140.0030.06311.35
5.2.130.0030.02711.43
5.2.120.0000.03311.41
5.2.110.0070.05711.34
5.2.100.0100.03311.38
5.2.90.0030.06011.34
5.2.80.0100.02711.28
5.2.70.0070.06011.38
5.2.60.0030.06311.24
5.2.50.0000.04311.12
5.2.40.0000.05711.24
5.2.30.0100.02711.21
5.2.20.0000.06311.06
5.2.10.0130.04310.96
5.2.00.0030.05011.04
5.1.60.0030.03310.24
5.1.50.0030.02310.19
5.1.40.0030.02310.18
5.1.30.0130.05010.54
5.1.20.0000.03710.58
5.1.10.0030.05010.31
5.1.00.0030.04010.37
5.0.50.0070.0178.80
5.0.40.0030.0308.57
5.0.30.0000.0708.38
5.0.20.0000.0438.38
5.0.10.0000.0478.38
5.0.00.0030.0438.30
4.4.90.0000.0377.82
4.4.80.0030.0237.82
4.4.70.0130.0237.82
4.4.60.0030.0337.82
4.4.50.0030.0377.82
4.4.40.0030.0237.82
4.4.30.0000.0177.82
4.4.20.0000.0377.82
4.4.10.0000.0307.82
4.4.00.0030.0277.82
4.3.110.0070.0307.82
4.3.100.0000.0337.82
4.3.90.0070.0207.82
4.3.80.0100.0477.82
4.3.70.0000.0277.82
4.3.60.0000.0407.82
4.3.50.0070.0207.82
4.3.40.0000.0577.82
4.3.30.0000.0237.82
4.3.20.0070.0177.82
4.3.10.0030.0277.82
4.3.00.0000.0237.82

preferences:
35.48 ms | 401 KiB | 5 Q