3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(phpversion()); $xml = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">" "<CardDetailsTransactionResponse xmlns="https://www.thepaymentgateway.net/"><CardDetailsTransactionResult AuthorisationAttempted="False"><StatusCode>3</StatusCode><Message>Issuer authentication required</Message></CardDetailsTransactionResult><TransactionOutputData CrossReference="130828091805278401583980"><CardTypeData><CardType>VISA</CardType><CardClass>PERSONAL</CardClass><Issuer ISOCode="250">Credit Industriel et Commercial</Issuer></CardTypeData><AmountReceived>2</AmountReceived><ThreeDSecureOutputData><PaREQ>eJxVUstO6zAQ3V/p/oOVPbGdNMGtpkaF8qhES3VJFyyDM0BK44CTkJavv3aS8pC8mHPsM+M5M3C2L3bkA02Vl3rqcZ95BLUqs1w/T71NcnUivDP59w8kLwZxfo+qMShhiVWVPiPJs6m3nv3D94DHY8FDNhaehI6RMGSVNqkfAD1CKzbqJdW1hFS9ny9WkgfhKIpPBdCBgALNYv7Fj4H2BOi0QDnHx7wmV7lOtUJyUe52qGqbuQLa3YMqG12bgxRBDPQIoDE72batnzn5U6/2Vek3r0DdHdDvj60bF1U21z7P5Gq7aVfJ5ecyUYe75GG/3D60y+0mvEsWU6DuBWRpjTJg1gERCMLZhIsJi4B2PKSF+4RkPrM+DADeXI1ZDyz9E4J12dgxHFs4IsD9W6mxF3zFkGGl5Do9FBaRp9KQmeq6nhARcB6Mrm9ZOLbudu+Afjd3ceNmoGprbRyN7OFhHDE3ho5z5XJrHY94X88BoE5FhxnTYRNs9GtD/gNQx8SN</PaREQ><ACSURL>https://gw1.paymentsensegateway.com:4430/ACS/Default.aspx</ACSURL></ThreeDSecureOutputData><GatewayEntryPoints><GatewayEntryPoint EntryPointURL="https://gw1.paymentsensegateway.com:4430/" Metric="100" /><GatewayEntryPoint EntryPointURL="https://gw2.paymentsensegateway.com:4430/" Metric="200" /></GatewayEntryPoints></TransactionOutputData></CardDetailsTransactionResponse>" "</soap:Envelope>'; $XmlDoc = new SimpleXMLElement($xml,LIBXML_NOCDATA); $a = $XmlDoc->CardDetailsTransactionResponse->CardDetailsTransactionResult->StatusCode[0]; var_dump($a);

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)
7.4.00.0030.01614.85
7.3.120.0060.00814.98
7.3.110.0070.01114.96
7.3.100.0110.00414.70
7.3.90.0070.00714.87
7.3.80.0080.00815.02
7.3.70.0080.00615.01
7.3.60.0030.00914.86
7.3.50.0030.01014.96
7.3.40.0070.00714.68
7.3.30.0090.00614.90
7.3.20.0060.00616.74
7.3.10.0070.00716.64
7.3.00.0050.00916.70
7.2.250.0040.01515.04
7.2.240.0000.02015.23
7.2.230.0030.01015.20
7.2.220.0040.01115.16
7.2.210.0130.00314.98
7.2.200.0090.00615.04
7.2.190.0060.00914.63
7.2.180.0040.01214.93
7.2.170.0120.00415.08
7.2.130.0040.01116.66
7.2.120.0100.00616.78
7.2.110.0070.01116.93
7.2.100.0140.00016.80
7.2.90.0100.00317.00
7.2.80.0060.00316.55
7.2.70.0040.00716.88
7.2.60.0060.00616.82
7.2.50.0070.00417.05
7.2.40.0060.00617.00
7.2.30.0090.00617.05
7.2.20.0040.00416.87
7.2.10.0140.00016.69
7.2.00.0070.00617.98
7.1.330.0000.01415.67
7.1.320.0070.00715.83
7.1.310.0060.00615.79
7.1.300.0090.00315.61
7.1.290.0030.01016.10
7.1.280.0090.00615.97
7.1.270.0060.00615.64
7.1.260.0030.01015.70
7.1.250.0030.00915.63
7.1.240.0030.01015.73
7.1.230.0000.01115.93
7.1.220.0040.00815.82
7.1.210.0040.01215.78
7.1.200.0110.01015.65
7.1.190.0060.00615.71
7.1.180.0030.00515.88
7.1.170.0030.00915.98
7.1.160.0040.01115.80
7.1.150.0110.00015.88
7.1.140.0050.00515.95
7.1.130.0060.00916.11
7.1.120.0000.01216.03
7.1.110.0040.01115.78
7.1.100.0050.00716.97
7.1.90.0110.00416.03
7.1.80.0120.00315.71
7.1.70.0070.00216.49
7.1.60.0080.01017.80
7.1.50.0090.01016.47
7.1.40.0040.00715.89
7.1.30.0080.00416.01
7.1.20.0070.01015.91
7.1.10.0090.00015.63
7.1.00.0030.04719.19
7.0.330.0110.00415.54
7.0.320.0100.00015.35
7.0.310.0000.00815.54
7.0.300.0040.01115.46
7.0.290.0040.00415.50
7.0.280.0030.00615.43
7.0.270.0070.00715.28
7.0.260.0090.00615.69
7.0.250.0030.00715.49
7.0.240.0040.00715.53
7.0.230.0120.00315.55
7.0.220.0070.00715.37
7.0.210.0080.00315.56
7.0.200.0040.00816.14
7.0.190.0100.00615.36
7.0.180.0060.00615.50
7.0.170.0060.00315.59
7.0.160.0070.00315.52
7.0.150.0040.00415.38
7.0.140.0030.04018.72
7.0.130.0080.00415.52
7.0.120.0070.00715.45
7.0.110.0060.00615.55
7.0.100.0060.00615.51
7.0.90.0070.00715.49
7.0.80.0000.01415.41
7.0.70.0000.01115.52
7.0.60.0030.04417.83
7.0.50.0120.02516.88
7.0.40.0080.02516.82
7.0.30.0170.03216.89
7.0.20.0150.04016.88
7.0.10.0030.03816.79
7.0.00.0050.04717.00
5.6.380.0070.00714.39
5.6.370.0090.00314.52
5.6.360.0030.01014.48
5.6.350.0030.00914.52
5.6.340.0030.01114.16
5.6.330.0120.00014.48
5.6.320.0060.00614.47
5.6.310.0040.00714.01
5.6.300.0110.00414.85
5.6.290.0100.00314.23
5.6.280.0030.04117.96
5.6.270.0080.00814.91
5.6.260.0040.00814.53
5.6.250.0100.00714.84
5.6.240.0040.01114.16
5.6.230.0040.01114.56
5.6.220.0030.01014.48
5.6.210.0100.03317.57
5.6.200.0070.04316.28
5.6.190.0060.02417.40
5.6.180.0200.02017.42
5.6.170.0250.04117.47
5.6.160.0080.04117.49
5.6.150.0050.04016.42
5.6.140.0020.03316.25
5.6.130.0060.02216.37
5.6.120.0030.04617.72
5.6.110.0050.03417.73
5.6.100.0060.04117.71
5.6.90.0110.02517.73
5.6.80.0070.04217.46
5.6.70.0040.01414.33
5.6.60.0080.00414.28
5.6.50.0080.00414.29
5.6.40.0070.00714.14
5.6.30.0130.00314.68
5.6.20.0070.01014.60
5.6.10.0000.00814.53
5.6.00.0000.01414.41
5.5.380.0030.00611.15
5.5.370.0120.00011.11
5.5.360.0100.00011.37
5.5.350.0120.01715.70
5.5.340.0020.02514.49
5.5.330.0050.04415.82
5.5.320.0280.03215.82
5.5.310.0220.03315.80
5.5.300.0070.03514.68
5.5.290.0050.02814.70
5.5.280.0070.04516.09
5.5.270.0030.02316.00
5.5.260.0020.02715.97
5.5.250.0030.02515.86
5.5.240.0050.03915.74
5.5.230.0060.00011.04
5.5.220.0030.00611.24
5.5.210.0000.00810.97
5.5.200.0030.01011.07
5.5.190.0040.00711.24
5.5.180.0030.00510.81
5.5.170.0060.00611.13
5.5.160.0030.00311.22
5.5.150.0000.00911.17
5.5.140.0090.00311.09
5.5.130.0030.00611.02
5.5.120.0090.00311.02
5.5.110.0000.00811.04
5.5.100.0080.00010.84
5.5.90.0040.00411.15
5.5.80.0080.00011.35
5.5.70.0030.00311.32
5.5.60.0000.00710.85
5.5.50.0060.00010.88
5.5.40.0120.00011.22
5.5.30.0030.00311.10
5.5.20.0030.00710.98
5.5.10.0040.00710.98
5.5.00.0030.00610.90
5.4.450.0380.02915.31
5.4.440.0340.03015.32
5.4.430.0080.02715.24
5.4.420.0100.02815.16
5.4.410.0100.02814.98
5.4.400.0100.02915.01
5.4.390.0100.02614.76
5.4.380.0100.03514.79
5.4.370.0120.03014.99
5.4.360.0130.02014.95
5.4.350.0040.02211.52
5.4.340.0060.02311.65
5.4.330.0080.00310.89
5.4.320.0050.02311.77
5.4.310.0040.02311.77
5.4.300.0040.02511.88
5.4.290.0070.02411.78
5.4.280.0090.02311.77
5.4.270.0020.02511.71
5.4.260.0060.02011.69
5.4.250.0030.02814.94
5.4.240.0060.02814.85
5.4.230.0020.03014.97
5.4.220.0080.02814.90
5.4.210.0040.03114.97
5.4.200.0050.03314.87
5.4.190.0060.03815.08
5.4.180.0030.03215.00
5.4.170.0100.03014.92
5.4.160.0070.02714.99
5.4.150.0030.03314.85
5.4.140.0050.04113.78
5.4.130.0040.02613.85
5.4.120.0070.02813.90
5.4.110.0070.02513.78
5.4.100.0050.02813.74
5.4.90.0050.03413.77
5.4.80.0020.02813.86
5.4.70.0080.02513.72
5.4.60.0040.02713.66
5.4.50.0050.02513.65
5.4.40.0120.02113.78
5.4.30.0040.02913.69
5.4.20.0050.02713.77
5.4.10.0050.02713.73
5.4.00.0060.02313.43
5.3.290.0070.02911.75
5.3.280.0020.03212.46
5.3.270.0090.03712.68
5.3.260.0080.03312.62
5.3.250.0030.03312.57
5.3.240.0060.02712.42
5.3.230.0090.02512.55
5.3.220.0080.02712.43
5.3.210.0020.03112.49
5.3.200.0030.02812.44
5.3.190.0070.02712.64
5.3.180.0070.02712.72
5.3.170.0110.02112.48
5.3.160.0050.02612.69
5.3.150.0080.02512.72
5.3.140.0070.02712.58
5.3.130.0030.03212.54
5.3.120.0030.02912.50
5.3.110.0070.02712.53
5.3.100.0080.02512.27
5.3.90.0000.03112.23
5.3.80.0050.02912.16
5.3.70.0090.03112.15
5.3.60.0070.03712.19
5.3.50.0020.03212.15
5.3.40.0060.02612.17
5.3.30.0050.03012.12
5.3.20.0100.02512.05
5.3.10.0070.02612.01
5.3.00.0050.02711.95
5.2.170.0020.03910.57
5.2.160.0060.01810.64
5.2.150.0050.02510.59
5.2.140.0080.02810.62
5.2.130.0040.02310.57
5.2.120.0060.02010.57
5.2.110.0050.02110.61
5.2.100.0030.02710.64
5.2.90.0060.03110.55
5.2.80.0050.02310.54
5.2.70.0050.02910.53
5.2.60.0080.02810.50
5.2.50.0080.02010.57
5.2.40.0040.02310.57
5.2.30.0070.02210.50
5.2.20.0050.02210.47
5.2.10.0030.02310.48
5.2.00.0040.02210.36
5.1.60.0010.02110.04
5.1.50.0000.0229.93
5.1.40.0000.0239.99
5.1.30.0030.02210.16
5.1.20.0050.02010.23
5.1.10.0060.01510.00
5.1.00.0030.02110.09
5.0.50.0050.0179.24
5.0.40.0020.0169.30
5.0.30.0020.0229.04
5.0.20.0000.0179.07
5.0.10.0070.0149.09
5.0.00.0000.0339.05
4.4.90.0020.0157.87
4.4.80.0030.0177.85
4.4.70.0050.0087.86
4.4.60.0020.0157.88
4.4.50.0000.0157.88
4.4.40.0020.0207.85
4.4.30.0030.0127.88
4.4.20.0060.0087.89
4.4.10.0050.0157.92
4.4.00.0030.0167.84
4.3.110.0000.0147.84
4.3.100.0030.0087.83
4.3.90.0030.0117.81
4.3.80.0050.0187.82
4.3.70.0010.0117.88
4.3.60.0060.0077.82
4.3.50.0030.0177.81
4.3.40.0000.0227.81
4.3.30.0040.0107.71
4.3.20.0030.0127.71
4.3.10.0000.0147.71
4.3.00.0070.0138.15

preferences:
37.99 ms | 400 KiB | 5 Q