3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<Msg> <Txn>submitsms </Txn> <AccountID>123456789</AccountID> <Password>barfoo123</Password> <Message>test message</Message> <RateCode>1</RateCode> <Mobiles> <MobileNo>07123456701</MobileNo> </Mobiles> </Msg>"; $doc = new DOMDocument(); $doc->loadXML($xml); $xpath = new DOMXPath($doc); var_dump( $xpath->evaluate("string(//AccountID)"), $xpath->evaluate("string(//Password)"), $xpath->evaluate("string(//Message)") );

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.0180.00018.43
8.3.50.0060.01218.34
8.3.40.0090.00619.10
8.3.30.0130.00318.96
8.3.20.0040.00419.35
8.3.10.0040.00423.77
8.3.00.0040.00423.88
8.2.180.0090.00618.54
8.2.170.0100.00722.96
8.2.160.0100.00719.46
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00820.85
8.2.120.0100.00326.35
8.2.110.0070.00421.44
8.2.100.0080.00318.03
8.2.90.0030.00619.98
8.2.80.0060.00318.41
8.2.70.0030.00617.63
8.2.60.0030.00718.00
8.2.50.0070.00318.00
8.2.40.0060.00317.88
8.2.30.0050.00219.59
8.2.20.0040.00418.20
8.2.10.0000.00718.35
8.2.00.0070.00019.70
8.1.280.0190.00325.92
8.1.270.0080.00022.39
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.01024.41
8.1.230.0080.00323.10
8.1.220.0050.00318.04
8.1.210.0000.00819.04
8.1.200.0030.00617.48
8.1.190.0030.00517.23
8.1.180.0030.00618.10
8.1.170.0050.00518.75
8.1.160.0000.00719.04
8.1.150.0000.00719.24
8.1.140.0030.00518.01
8.1.130.0000.00819.34
8.1.120.0070.00017.61
8.1.110.0070.00017.75
8.1.100.0020.00517.80
8.1.90.0050.00317.80
8.1.80.0000.00717.75
8.1.70.0000.00717.75
8.1.60.0030.00517.90
8.1.50.0000.00817.87
8.1.40.0080.00017.86
8.1.30.0090.00017.75
8.1.20.0000.00817.98
8.1.10.0040.00417.94
8.1.00.0080.00017.66
8.0.300.0000.00820.14
8.0.290.0050.00317.00
8.0.280.0040.00418.63
8.0.270.0030.00317.55
8.0.260.0040.00417.45
8.0.250.0070.00017.25
8.0.240.0070.00017.26
8.0.230.0030.00517.32
8.0.220.0000.00717.21
8.0.210.0040.00317.02
8.0.200.0030.00317.23
8.0.190.0040.00417.06
8.0.180.0030.00617.29
8.0.170.0000.00817.22
8.0.160.0000.00817.13
8.0.150.0070.00017.09
8.0.140.0070.00017.12
8.0.130.0030.00313.44
8.0.120.0030.00517.21
8.0.110.0000.00817.14
8.0.100.0070.00017.12
8.0.90.0000.00817.13
8.0.80.0090.00917.13
8.0.70.0040.00417.14
8.0.60.0000.00817.12
8.0.50.0040.00417.02
8.0.30.0080.01017.40
8.0.20.0090.01317.40
8.0.10.0030.00517.34
8.0.00.0080.01216.83
7.4.330.0000.00515.55
7.4.320.0030.00316.81
7.4.300.0030.00316.74
7.4.290.0000.00716.70
7.4.280.0070.00316.80
7.4.270.0030.00616.92
7.4.260.0040.00416.72
7.4.250.0040.00416.80
7.4.240.0070.00016.91
7.4.230.0000.00716.97
7.4.220.0030.00516.87
7.4.210.0090.00716.76
7.4.200.0080.00016.86
7.4.140.0200.01217.86
7.4.130.0060.01616.75
7.4.120.0090.00916.78
7.4.110.0110.00616.82
7.4.100.0100.00716.71
7.4.90.0130.00616.64
7.4.80.0100.00719.39
7.4.70.0110.00516.70
7.4.60.0120.00916.72
7.4.50.0120.00016.68
7.4.40.0000.01716.81
7.4.00.0050.01215.08
7.3.330.0030.00313.25
7.3.320.0030.00313.39
7.3.310.0040.00416.58
7.3.300.0030.00316.34
7.3.290.0070.00016.54
7.3.280.0160.00416.59
7.3.260.0090.01016.70
7.3.240.0100.00916.61
7.3.230.0100.00716.64
7.3.210.0100.00716.38
7.3.200.0140.00416.44
7.3.190.0060.01116.86
7.3.180.0070.01016.92
7.3.170.0070.00916.82
7.3.160.0070.01116.67
7.3.120.0090.00615.02
7.3.110.0030.01614.92
7.3.100.0150.00014.63
7.3.90.0000.01114.65
7.3.80.0000.01014.80
7.3.70.0030.00915.00
7.3.60.0040.00814.87
7.3.50.0030.01314.70
7.3.40.0000.00914.52
7.3.30.0070.00714.91
7.3.20.0060.00616.43
7.3.10.0080.00816.73
7.3.00.0030.00716.65
7.2.330.0210.00316.90
7.2.320.0060.01216.87
7.2.310.0040.01916.83
7.2.300.0060.01317.08
7.2.290.0090.01316.64
7.2.250.0060.00914.96
7.2.240.0070.01014.74
7.2.230.0070.00315.46
7.2.220.0070.01015.11
7.2.210.0030.00715.23
7.2.200.0070.00715.32
7.2.190.0030.01315.11
7.2.180.0030.01515.00
7.2.170.0100.00015.27
7.2.70.0390.01415.00
7.2.60.0470.01215.05
7.2.50.0530.00515.01
7.2.40.0680.00715.07
7.2.30.0340.00915.05
7.2.20.0460.01014.98
7.2.10.0750.00915.09
7.2.00.0660.00615.13
7.1.330.0000.00915.95
7.1.320.0070.01016.07
7.1.310.0060.00615.81
7.1.300.0090.00615.86
7.1.290.0080.00415.63
7.1.280.0030.00715.59
7.1.270.0070.01015.70
7.1.260.0060.00315.79
7.1.200.0120.00815.80
7.1.170.0580.00613.87
7.1.160.0390.00514.10
7.1.150.0320.00914.12
7.1.140.0280.00914.04
7.1.130.0540.00613.83
7.1.120.0660.01213.85
7.1.110.0640.00814.02
7.1.100.0490.01013.96
7.1.90.0740.00614.02
7.1.80.0580.00913.79
7.1.70.0520.01414.06
7.1.60.0420.01032.10
7.1.50.0720.01131.96
7.1.40.0780.01032.02
7.1.30.0620.00631.99
7.1.20.1320.01731.99
7.1.10.0490.00614.03
7.1.00.1100.00814.03

preferences:
55.21 ms | 400 KiB | 5 Q