3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlStr = '<root><node> <child1></child1> <findme>first</findme> <child2></child2> </node> <node> <child1> <findme>second</findme> </child1> <child2></child2> </node> <node> <child1></child1> <child2> <another> <findme>third</findme> </another> </child2> </node></root>'; $xml = new SimpleXMLElement($xmlStr); $result = $xml->xpath('//findme'); foreach($result as $elem) { echo $elem."\r"; } ?>

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.4.20.0130.00619.70
8.4.10.0110.00619.84
8.3.140.0060.00316.71
8.3.130.0030.00618.83
8.3.120.0050.00521.14
8.3.110.0120.00416.88
8.3.100.0060.00316.90
8.3.90.0080.00026.77
8.3.80.0040.00717.97
8.3.70.0140.00416.88
8.3.60.0170.00316.87
8.3.50.0100.00922.17
8.3.40.0030.01619.12
8.3.30.0030.01218.97
8.3.20.0040.00418.97
8.3.10.0000.00722.27
8.3.00.0000.00822.29
8.2.260.0080.00020.96
8.2.250.0040.00418.79
8.2.240.0040.01117.52
8.2.230.0090.00020.94
8.2.220.0000.00837.54
8.2.210.0000.00726.77
8.2.200.0000.01016.88
8.2.190.0150.00617.13
8.2.180.0060.00916.84
8.2.170.0140.00022.96
8.2.160.0070.00722.76
8.2.150.0050.00224.18
8.2.140.0050.00324.66
8.2.130.0070.00020.20
8.2.120.0040.00426.35
8.2.110.0130.00322.71
8.2.100.0030.01018.09
8.2.90.0080.00018.16
8.2.80.0060.00319.29
8.2.70.0030.01048.82
8.2.60.0110.00348.90
8.2.50.0100.00448.73
8.2.40.0090.00449.46
8.2.30.0090.00348.94
8.2.20.0100.00248.84
8.2.10.0080.00448.88
8.2.00.0050.00348.69
8.1.310.0070.00717.13
8.1.300.0110.00716.46
8.1.290.0030.00618.88
8.1.280.0150.00025.92
8.1.270.0040.00422.44
8.1.260.0000.00728.09
8.1.250.0070.00728.09
8.1.240.0060.00322.39
8.1.230.0030.00921.29
8.1.220.0000.00818.03
8.1.210.0050.00319.09
8.1.200.0070.00648.46
8.1.190.0080.00448.34
8.1.180.0070.00648.71
8.1.170.0090.00349.12
8.1.160.0070.00649.26
8.1.150.0100.00349.97
8.1.140.0080.00549.60
8.1.130.0060.00548.74
8.1.120.0060.00733.12
8.1.110.0080.00448.57
8.1.100.0060.00533.17
8.1.90.0090.00448.54
8.1.80.0090.00448.58
8.1.70.0080.00548.51
8.1.60.0070.00548.68
8.1.50.0070.00548.58
8.1.40.0060.00538.33
8.1.30.0120.00538.41
8.1.20.0120.00538.45
8.1.10.0110.00638.33
8.1.00.0100.00538.35
8.0.300.0080.00020.57
8.0.290.0060.00648.23
8.0.280.0050.00749.08
8.0.270.0060.00648.23
8.0.260.0070.00548.46
8.0.250.0110.00048.31
8.0.240.0100.00348.25
8.0.230.0070.00648.22
8.0.220.0080.00348.29
8.0.210.0090.00248.29
8.0.200.0060.00548.23
8.0.190.0000.01248.36
8.0.180.0070.00548.23
8.0.170.0090.00237.98
8.0.160.0080.00337.94
8.0.150.0100.00237.90
8.0.140.0090.00637.90
8.0.130.0070.00636.75
8.0.120.0100.00537.96
8.0.110.0070.00532.76
8.0.100.0080.00332.70
8.0.90.0040.00732.75
8.0.80.0090.00432.74
8.0.70.0050.00632.71
8.0.60.0070.00432.69
8.0.50.0030.00732.76
8.0.30.0100.00529.68
8.0.20.0090.00726.25
8.0.10.0070.00732.83
8.0.00.0080.00729.67
7.4.330.0070.00447.44
7.4.320.0060.00548.15
7.4.300.0040.00748.06
7.4.290.0070.00448.15
7.4.280.0100.00637.73
7.4.270.0130.00337.74
7.4.260.0090.00537.65
7.4.250.0130.00337.63
7.4.240.0070.00427.29
7.4.230.0120.00232.54
7.4.220.0140.00232.51
7.4.210.0090.00629.37
7.4.200.0080.00432.50
7.4.190.0070.00537.72
7.4.180.0080.00537.74
7.4.160.0120.00427.30
7.4.150.0100.00629.41
7.4.140.0090.00626.20
7.4.130.0090.00725.75
7.4.120.0100.00525.74
7.4.110.0100.00529.20
7.4.100.0110.00429.34
7.4.90.0100.00429.24
7.4.80.0100.00529.86
7.4.70.0120.00329.33
7.4.60.0100.00629.36
7.4.50.0090.00629.19
7.4.40.0110.00429.23
7.4.30.0100.00429.27
7.4.20.0090.00729.29
7.4.10.0080.00729.16
7.4.00.0090.00626.90
7.3.330.0110.00436.34
7.3.320.0100.00336.42
7.3.310.0090.00332.24
7.3.300.0080.00532.27
7.3.290.0100.00532.36
7.3.280.0050.01122.34
7.3.270.0120.00329.33
7.3.260.0100.00627.13
7.3.250.0100.00725.65
7.3.240.0080.00827.18
7.3.230.0090.00529.27
7.3.220.0080.00632.23
7.3.210.0100.00529.13
7.3.200.0090.00629.09
7.3.190.0090.00629.10
7.3.180.0060.00929.14
7.3.170.0080.00629.21
7.3.160.0050.00829.14
7.3.150.0090.00629.07
7.3.140.0100.00629.13
7.3.130.0090.00729.15
7.3.120.0120.00429.10
7.3.110.0100.00626.79
7.3.100.0100.00526.77
7.3.90.0090.00622.94
7.3.80.0090.00722.88
7.3.70.0100.00722.84
7.3.60.0110.00622.93
7.3.50.0070.00922.90
7.3.40.0090.00622.11
7.3.30.0090.00522.06
7.3.20.0100.00722.50
7.3.10.0110.00421.91
7.3.00.0120.00621.88
7.2.340.0170.00332.40
7.2.330.0130.00529.21
7.2.320.0110.00729.23
7.2.310.0110.00729.32
7.2.300.0120.00629.32
7.2.290.0120.00529.25
7.2.280.0110.00829.36
7.2.270.0100.00929.33
7.2.260.0110.00829.28
7.2.250.0120.00729.37
7.2.240.0110.00826.95
7.2.230.0110.00827.06
7.2.220.0120.00623.02
7.2.210.0100.00923.06
7.2.200.0140.00623.08
7.2.190.0110.00723.05
7.2.180.0130.00523.08
7.2.170.0100.00722.28
7.2.160.0120.00522.28
7.2.150.0120.00622.66
7.2.140.0180.00722.69
7.2.130.0110.00722.25
7.2.120.0100.00922.38
7.2.110.0160.00622.37
7.2.100.0120.00622.38
7.2.90.0110.00822.32
7.2.80.0120.00622.38
7.2.70.0100.00821.73
7.2.60.0130.00721.37
7.2.50.0170.00821.40
7.2.40.0180.00821.76
7.2.30.0160.00921.76
7.2.20.0190.00921.75
7.2.10.0200.00821.80
7.2.00.0160.00721.53
7.1.330.0120.00626.50
7.1.320.0110.00722.37
7.1.310.0140.00622.29
7.1.300.0140.00722.24
7.1.290.0120.00822.38
7.1.280.0140.00421.67
7.1.270.0110.00721.71
7.1.260.0110.00721.64
7.1.250.0160.00521.33
7.1.240.0120.00921.79
7.1.230.0160.00621.83
7.1.220.0130.00721.80
7.1.210.0140.00821.82
7.1.200.0110.00821.28
7.1.190.0130.00721.76
7.1.180.0170.00721.73
7.1.170.0130.00721.14
7.1.160.0150.00621.05
7.1.150.0200.00921.05
7.1.140.0200.00821.02
7.1.130.0200.00721.14
7.1.120.0220.00721.06
7.1.110.0210.00721.10
7.1.100.0180.00821.11
7.1.90.0200.00721.14
7.1.80.0120.00921.18
7.1.70.0170.00820.76
7.1.60.0280.00722.13
7.1.50.0170.00622.80
7.1.40.0160.00922.74
7.1.30.0170.00822.77
7.1.20.0180.00722.72
7.1.10.0150.00621.09
7.1.00.0200.01421.24
7.0.330.0130.00821.51
7.0.320.0150.00621.75
7.0.310.0130.00621.78
7.0.300.0150.00620.96
7.0.290.0250.00421.04
7.0.280.0150.00821.76
7.0.270.0200.00721.10
7.0.260.0190.00721.06
7.0.250.0190.00721.14
7.0.240.0150.00621.16
7.0.230.0130.00721.09
7.0.220.0190.00621.07
7.0.210.0220.00721.04
7.0.200.0220.00620.53
7.0.190.0310.00721.02
7.0.180.0190.00721.08
7.0.170.0140.00921.11
7.0.160.0170.00621.00
7.0.150.0130.00921.02
7.0.140.0170.00621.03
7.0.130.0170.00621.11
7.0.120.0150.01121.02
7.0.110.0140.01221.01
7.0.100.0160.01220.98
7.0.90.0160.01120.96
7.0.80.0160.01120.95
7.0.70.0160.01220.97
7.0.60.0160.01020.98
7.0.50.0220.00921.01
7.0.40.0150.01221.01
7.0.30.0160.01121.00
7.0.20.0140.01221.01
7.0.10.0130.01221.00
7.0.00.0170.01221.05
5.6.400.0120.00521.56
5.6.390.0110.00721.51
5.6.380.0110.00821.48
5.6.370.0150.00721.72
5.6.360.0120.00821.61
5.6.350.0160.00721.68
5.6.340.0130.01021.69
5.6.330.0120.00921.60
5.6.320.0150.00821.58
5.6.310.0120.00821.65
5.6.300.0160.00620.93
5.6.290.0140.00620.96
5.6.280.0150.00620.95
5.6.270.0130.01221.05
5.6.260.0140.01120.99
5.6.250.0130.01021.03
5.6.240.0130.01321.00
5.6.230.0130.01221.00
5.6.220.0130.01120.97
5.6.210.0140.01020.97
5.6.200.0120.01320.99
5.6.190.0130.01220.96
5.6.180.0130.01220.96
5.6.170.0150.01121.07
5.6.160.0130.01321.05
5.6.150.0150.01121.10
5.6.140.0130.01120.97
5.6.130.0110.01321.01
5.6.120.0120.01120.95
5.6.110.0120.01221.02
5.6.100.0140.01020.94
5.6.90.0130.01020.99
5.6.80.0120.01120.93
5.6.70.0120.01220.91
5.6.60.0110.01220.94
5.6.50.0120.01420.96
5.6.40.0120.01320.89
5.6.30.0120.01520.92
5.6.20.0120.01220.85
5.6.10.0110.01220.89
5.6.00.0140.01020.88

preferences:
29.81 ms | 403 KiB | 5 Q