3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <Msg> <Txn>submitsms </Txn> <AccountID>123456789</AccountID> <Password>barfoo123</Password> <Message>test message</Message> <RateCode>1</RateCode> <Mobiles> <MobileNo>07123456701</MobileNo> </Mobiles> </Msg> XML; $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.0080.00818.68
8.3.50.0030.01418.58
8.3.40.0040.01118.92
8.3.30.0120.00618.84
8.3.20.0040.00419.35
8.3.10.0070.00022.15
8.3.00.0040.01123.99
8.2.180.0070.01518.79
8.2.170.0150.00022.96
8.2.160.0090.00619.71
8.2.150.0080.00024.18
8.2.140.0150.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00021.50
8.2.110.0060.00320.90
8.2.100.0090.00619.95
8.2.90.0050.00518.00
8.2.80.0050.00318.97
8.2.70.0000.00917.88
8.2.60.0000.00818.28
8.2.50.0060.00318.07
8.2.40.0080.00020.20
8.2.30.0080.00018.32
8.2.20.0050.00318.32
8.2.10.0000.00718.22
8.2.00.0000.00819.68
8.1.280.0100.00325.92
8.1.270.0000.00723.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01219.46
8.1.230.0120.00018.20
8.1.220.0060.00318.16
8.1.210.0030.00718.77
8.1.200.0040.00417.48
8.1.190.0040.00417.48
8.1.180.0030.00619.57
8.1.170.0040.00418.96
8.1.160.0000.00819.04
8.1.150.0040.00419.26
8.1.140.0080.00017.82
8.1.130.0040.00417.56
8.1.120.0000.00817.85
8.1.110.0030.00517.59
8.1.100.0040.00417.65
8.1.90.0000.00817.65
8.1.80.0030.00517.63
8.1.70.0030.00317.62
8.1.60.0120.00417.82
8.1.50.0100.00617.72
8.1.40.0130.00417.78
8.1.30.0170.00417.82
8.1.20.0180.00517.93
8.1.10.0160.00517.84
8.1.00.0150.00817.78
8.0.300.0060.00318.77
8.0.290.0060.00317.00
8.0.280.0080.00018.74
8.0.270.0000.00717.46
8.0.260.0030.00317.07
8.0.250.0030.00317.11
8.0.240.0040.00417.36
8.0.230.0030.00317.16
8.0.220.0080.00017.14
8.0.210.0020.00517.09
8.0.200.0030.00317.30
8.0.190.0050.00417.25
8.0.180.0120.00717.19
8.0.170.0140.00417.21
8.0.160.0120.00617.17
8.0.150.0100.00717.17
8.0.140.0110.00717.07
8.0.130.0080.00716.24
8.0.120.0080.00717.17
8.0.110.0100.00617.17
8.0.100.0140.00517.13
8.0.90.0110.00517.12
8.0.80.0130.00817.17
8.0.70.0110.00517.18
8.0.60.0130.00617.10
8.0.50.0120.00417.13
8.0.30.0100.01017.26
8.0.20.0120.00817.30
8.0.10.0100.00417.21
8.0.00.0080.00717.14
7.4.330.0000.00515.55
7.4.320.0000.00616.84
7.4.300.0060.00016.91
7.4.290.0130.00316.76
7.4.280.0100.00616.77
7.4.270.0150.00216.81
7.4.260.0120.00416.82
7.4.250.0120.00416.75
7.4.240.0080.00716.80
7.4.230.0090.00716.73
7.4.220.0100.00616.81
7.4.210.0130.00516.79
7.4.200.0120.00716.77
7.4.190.0170.00816.87
7.4.180.0150.00816.82
7.4.160.0160.00416.83
7.4.150.0200.00316.77
7.4.140.0120.00917.39
7.4.130.0160.00616.67
7.4.120.0140.00616.74
7.4.110.0150.00616.73
7.4.100.0130.00816.79
7.4.90.0160.00616.72
7.4.80.0150.00617.28
7.4.70.0140.00716.75
7.4.60.0160.00416.62
7.4.50.0150.00316.50
7.4.40.0090.00716.61
7.4.30.0100.00816.63
7.4.20.0140.00216.54
7.4.10.0110.00616.50
7.4.00.0110.00716.22
7.3.330.0130.00615.76
7.3.320.0130.00715.65
7.3.310.0150.00416.35
7.3.300.0140.00616.50
7.3.290.0150.00416.41
7.3.280.0150.00916.56
7.3.270.0210.00316.62
7.3.260.0160.00516.58
7.3.250.0170.00716.36
7.3.240.0130.00816.58
7.3.230.0180.00416.46
7.3.220.0200.00416.33
7.3.210.0190.00616.48
7.3.200.0160.00716.49
7.3.190.0140.00716.46
7.3.180.0150.00716.46
7.3.170.0120.00916.55
7.3.160.0180.00416.49
7.3.150.0170.00516.35
7.3.140.0160.00816.58
7.3.130.0160.00816.57
7.3.120.0180.00616.42
7.3.110.0180.00516.32
7.3.100.0170.00616.39
7.3.90.0200.00316.63
7.3.80.0200.00516.42
7.3.70.0200.00316.33
7.3.60.0170.00516.65
7.3.50.0200.00516.54
7.3.40.0160.00816.60
7.3.30.0180.00616.38
7.3.20.0200.00417.20
7.3.10.0130.00716.81
7.3.00.0170.00616.80
7.2.340.0170.00716.60
7.2.330.0160.00916.68
7.2.320.0160.00616.68
7.2.310.0170.00716.65
7.2.300.0160.00616.46
7.2.290.0150.00816.47
7.2.280.0160.00716.62
7.2.270.0160.00616.45
7.2.260.0160.00916.50
7.2.250.0180.00616.70
7.2.240.0180.00516.54
7.2.230.0180.00416.41
7.2.220.0170.00616.70
7.2.210.0160.00816.65
7.2.200.0220.00316.58
7.2.190.0170.00716.49
7.2.180.0180.00616.60
7.2.170.0200.00316.87
7.2.160.0190.00316.60
7.2.150.0200.00417.29
7.2.140.0200.00417.34
7.2.130.0130.00617.12
7.2.120.0130.00717.14
7.2.110.0120.00917.06
7.2.100.0190.00617.18
7.2.90.0130.00817.09
7.2.80.0170.00717.02
7.2.70.0190.00616.72
7.2.60.0140.00616.71
7.2.50.0300.00816.79
7.2.40.0200.00616.76
7.2.30.0200.00516.78
7.2.20.0160.00816.82
7.2.10.0180.00816.71
7.2.00.0180.00916.77
7.1.330.0170.00616.56
7.1.320.0230.00516.45
7.1.310.0150.00616.42
7.1.300.0170.00616.54
7.1.290.0130.00616.43
7.1.280.0140.00716.48
7.1.270.0150.00516.52
7.1.260.0130.00916.33
7.1.250.0100.00716.09
7.1.240.0160.00416.18
7.1.230.0150.00616.29
7.1.220.0180.00316.41
7.1.210.0160.00716.43
7.1.200.0170.00316.23
7.1.190.0160.00516.47
7.1.180.0190.00416.30
7.1.170.0180.00515.77
7.1.160.0150.00515.70
7.1.150.0200.00715.71
7.1.140.0260.00615.84
7.1.130.0150.00515.81
7.1.120.0180.00515.75
7.1.110.0180.00515.67
7.1.100.0280.00316.17
7.1.90.0310.00416.16
7.1.80.0240.00416.20
7.1.70.0220.00616.05
7.1.60.0190.00620.76
7.1.50.0280.00820.69
7.1.40.0210.00920.78
7.1.30.0230.00520.73
7.1.20.0230.00420.71
7.1.10.0190.00216.22
7.1.00.0270.00216.25
7.0.330.0180.00516.70
7.0.320.0150.00716.70
7.0.310.0170.00416.77
7.0.300.0160.00716.74
7.0.290.0190.00316.74
7.0.280.0140.00716.74
7.0.270.0180.00616.61
7.0.260.0150.00416.80
7.0.250.0190.00316.82
7.0.240.0170.00616.68
7.0.230.0190.00517.42
7.0.220.0160.00517.20
7.0.210.0180.00517.26
7.0.200.0170.00417.39
7.0.190.0180.00417.39
7.0.180.0180.00317.30
7.0.170.0230.00017.43
7.0.160.0150.00617.27
7.0.150.0180.00217.35
7.0.140.0200.00217.37
7.0.130.0170.00517.33
7.0.120.0200.00317.27
7.0.110.0200.00317.44
7.0.100.0180.00517.39
7.0.90.0200.00417.29
7.0.80.0170.00517.24
7.0.70.0160.00517.25
7.0.60.0150.00717.16
7.0.50.0160.00517.30
7.0.40.0160.00617.25
7.0.30.0150.00517.24
7.0.20.0180.00517.18
7.0.10.0140.00717.42
7.0.00.0180.00417.26
5.6.400.0150.00716.14
5.6.390.0140.00716.21
5.6.380.0160.00516.08
5.6.370.0150.00716.04
5.6.360.0160.00516.00
5.6.350.0160.00416.18
5.6.340.0150.00516.13
5.6.330.0130.00716.09
5.6.320.0170.00516.12
5.6.310.0130.00616.04
5.6.300.0180.00416.02
5.6.290.0190.00316.11
5.6.280.0160.00516.08
5.6.270.0160.00616.06
5.6.260.0130.00716.18
5.6.250.0160.00415.92
5.6.240.0160.00416.02
5.6.230.0140.00716.10
5.6.220.0170.00316.17
5.6.210.0140.00616.15
5.6.200.0150.00516.32
5.6.190.0160.00516.23
5.6.180.0170.00516.10
5.6.170.0180.00516.41
5.6.160.0150.00416.40
5.6.150.0170.00316.28
5.6.140.0170.00316.21
5.6.130.0160.00516.33
5.6.120.0170.00416.21
5.6.110.0160.00416.14
5.6.100.0150.00616.21
5.6.90.0120.00716.10
5.6.80.0140.00515.97
5.6.70.0140.00616.19
5.6.60.0090.00916.31
5.6.50.0170.00316.02
5.6.40.0150.00516.00
5.6.30.0140.00616.03
5.6.20.0150.00415.95
5.6.10.0150.00515.92
5.6.00.0160.00216.03

preferences:
57.66 ms | 400 KiB | 5 Q