3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<tr class='unknown another' id='no idea'> <td attribute='no idea' class='no idea'>Some Marker I know<td> <label>This is what I want</label> <tr>"; $doc = new DomDocument; $doc->loadHTML($html); $xpath = new DomXPath($doc); $marker = $xpath->query('//*[text()="Some Marker I know"]/following-sibling::*'); echo(trim($marker[0]->nodeValue));

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.5.00.0130.00820.44
8.4.150.0020.00114.05
8.4.140.0130.00818.02
8.4.130.0140.00718.45
8.4.120.0120.00824.39
8.4.110.0070.00218.55
8.4.100.0090.00619.26
8.4.90.0090.00219.14
8.4.80.0050.00419.11
8.4.70.0090.01118.36
8.4.60.0110.00819.22
8.4.50.0030.00520.92
8.4.40.0070.01319.62
8.4.30.0130.00619.75
8.4.20.0100.00720.81
8.4.10.0030.00617.93
8.3.280.0080.01418.82
8.3.270.0100.01016.72
8.3.260.0110.00917.02
8.3.250.0050.00319.25
8.3.240.0120.00517.52
8.3.230.0130.00616.86
8.3.220.0050.00319.13
8.3.210.0110.00816.66
8.3.200.0060.00316.73
8.3.190.0110.00717.43
8.3.180.0040.00416.88
8.3.170.0100.01017.29
8.3.160.0000.01518.84
8.3.150.0180.00320.87
8.3.140.0040.00417.82
8.3.130.0030.00617.04
8.3.120.0000.00819.23
8.3.110.0030.00620.94
8.3.100.0000.00924.06
8.3.90.0000.00826.77
8.3.80.0000.00917.00
8.3.70.0150.01116.99
8.3.60.0100.01018.81
8.3.50.0100.00518.07
8.3.40.0120.00319.09
8.3.30.0090.00618.96
8.3.20.0040.00418.81
8.3.10.0030.00624.02
8.3.00.0050.00321.02
8.2.290.0120.00720.79
8.2.280.0130.00819.12
8.2.270.0090.00917.28
8.2.260.0000.00817.32
8.2.250.0070.00717.01
8.2.240.0060.00317.67
8.2.230.0050.00322.58
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0090.00016.88
8.2.190.0040.01416.88
8.2.180.0080.01225.92
8.2.170.0140.00719.19
8.2.160.0030.01422.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0060.01220.16
8.2.120.0080.00026.35
8.2.110.0050.00521.60
8.2.100.0060.00618.09
8.2.90.0040.00418.22
8.2.80.0000.00918.30
8.2.70.0000.00818.18
8.2.60.0000.00818.41
8.2.50.0080.00018.10
8.2.40.0000.00719.68
8.2.30.0040.00419.73
8.2.20.0040.00418.34
8.2.10.0040.00418.57
8.2.00.0040.00418.11
8.1.330.0130.00622.27
8.1.320.0130.00716.54
8.1.310.0120.00317.28
8.1.300.0090.00020.44
8.1.290.0100.00018.88
8.1.280.0040.01125.92
8.1.270.0030.00724.19
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0100.00317.83
8.1.230.0080.00423.02
8.1.220.0040.00418.03
8.1.210.0040.00419.20
8.1.200.0060.00317.60
8.1.190.0060.00317.36
8.1.180.0030.00718.10
8.1.170.0030.00618.92
8.1.160.0050.00319.17
8.1.150.0000.00719.07
8.1.140.0020.00524.15
8.1.130.0080.00020.43
8.1.120.0040.00417.79
8.1.110.0060.00317.69
8.1.100.0000.00817.76
8.1.90.0070.00017.74
8.1.80.0050.00317.65
8.1.70.0030.00617.80
8.1.60.0040.00417.77
8.1.50.0050.00317.72
8.1.40.0000.00817.69
8.1.30.0000.00917.80
8.1.20.0060.00317.90
8.1.10.0040.00417.87
8.1.00.0050.00217.75
8.0.300.0040.00419.90
8.0.290.0060.00317.25
8.0.280.0040.00418.80
8.0.270.0040.00417.58
8.0.260.0000.00720.29
8.0.250.0000.00717.29
8.0.240.0060.00017.35
8.0.230.0030.00317.14
8.0.220.0070.00417.08
8.0.210.0030.00317.14
8.0.200.0070.00017.13
8.0.190.0070.00017.25
8.0.180.0040.00417.10
8.0.170.0050.00517.11
8.0.160.0070.00017.06
8.0.150.0060.00317.14
8.0.140.0000.00717.00
8.0.130.0070.00013.63
8.0.120.0030.00617.20
8.0.110.0040.00417.19
8.0.100.0040.00416.91
8.0.90.0040.00417.09
8.0.80.0080.01217.15
8.0.70.0020.00517.02
8.0.60.0000.00717.17
8.0.50.0040.00417.23
8.0.30.0020.01517.38
8.0.20.0110.01517.40
8.0.10.0000.00717.37
8.0.00.0120.00617.10
7.4.330.0000.00515.55
7.4.320.0030.00316.86
7.4.300.0000.00716.80
7.4.290.0000.00716.80
7.4.280.0050.00316.71
7.4.270.0030.00316.88
7.4.260.0050.00316.81
7.4.250.0030.00616.93
7.4.240.0000.00716.93
7.4.230.0000.00716.87
7.4.220.0030.00516.98
7.4.210.0070.00816.95
7.4.200.0030.00516.70
7.4.160.0090.00716.80
7.4.140.0090.01117.86
7.4.130.0030.01417.00
7.4.120.0090.00916.86
7.4.110.0060.01316.82
7.4.100.0090.00916.87
7.4.90.0090.00916.97
7.4.80.0130.00319.39
7.4.70.0090.00616.82
7.4.60.0120.01016.88
7.4.50.0130.00317.02
7.4.40.0040.01416.84
7.4.10.0080.00815.13
7.4.00.0030.01515.00
7.3.330.0050.00013.32
7.3.320.0060.00013.46
7.3.310.0040.00416.50
7.3.300.0000.00616.44
7.3.290.0040.00416.56
7.3.280.0080.00716.60
7.3.260.0130.00716.73
7.3.240.0120.00616.74
7.3.230.0090.01016.84
7.3.210.0170.00016.54
7.3.200.0000.01616.75
7.3.190.0130.00316.77
7.3.180.0120.00616.54
7.3.170.0030.01316.70
7.3.160.0060.01016.59
7.3.130.0030.01415.03
7.3.120.0050.01215.02
7.3.110.0120.00415.13
7.3.100.0040.01114.94
7.3.90.0050.01114.84
7.3.80.0030.01015.04
7.3.70.0070.00814.88
7.3.60.0050.00814.93
7.3.50.0060.00914.95
7.3.40.0050.00814.89
7.3.30.0030.00914.84
7.3.20.0030.01016.75
7.3.10.0070.00716.77
7.3.00.0010.01316.75
7.2.330.0160.00316.82
7.2.320.0110.00816.97
7.2.310.0090.00916.80
7.2.300.0120.00416.86
7.2.290.0030.01316.96
7.2.260.0060.01115.22
7.2.250.0060.01215.12
7.2.240.0080.00715.27
7.2.230.0030.01415.17
7.2.220.0060.00915.16
7.2.210.0050.00715.14
7.2.200.0030.01015.01
7.2.190.0090.00415.16
7.2.180.0050.00815.01
7.2.170.0080.00415.18
7.2.160.0060.01015.15
7.2.150.0030.01116.88
7.2.140.0050.00716.90
7.2.130.0060.00917.01
7.2.120.0070.00417.01
7.2.110.0250.00516.47
7.2.100.0240.00616.57
7.2.90.0270.00916.42
7.2.80.0230.00616.41
7.2.70.0210.00916.65
7.2.60.0280.00816.51
7.2.50.0250.00716.41
7.2.40.0250.00816.42
7.2.30.0260.00616.44
7.2.20.0190.01116.56
7.2.10.0250.00416.42
7.2.00.0250.00616.53
7.1.330.0050.01015.92
7.1.320.0060.01115.95
7.1.310.0040.00815.89
7.1.300.0040.01115.92
7.1.290.0070.00715.77
7.1.280.0060.00715.99
7.1.270.0090.00415.96
7.1.260.0060.00615.86
7.1.250.0040.01015.90
7.1.240.0040.00815.96
7.1.230.0290.00415.15
7.1.220.0340.00615.13
7.1.210.0270.01015.18
7.1.200.0260.00515.29
7.1.190.0380.00615.23
7.1.180.0270.00815.25
7.1.170.0290.00815.34
7.1.160.0240.00715.22
7.1.150.0210.00915.22
7.1.140.0300.00515.39
7.1.130.0310.00715.25
7.1.120.0310.00515.10
7.1.110.0350.00515.08
7.1.100.0280.00915.25
7.1.90.0290.00915.48
7.1.80.0300.00515.39
7.1.70.0290.01015.29
7.1.60.0370.00421.45
7.1.50.0600.00821.25
7.1.40.0380.00921.34
7.1.30.0380.00721.20
7.1.20.0340.01121.21
7.1.10.0320.00615.34
7.1.00.0270.00815.30
7.0.330.0040.00515.48
7.0.320.0050.00615.39
7.0.310.0050.00915.65
7.0.300.0070.00415.44
7.0.290.0020.01115.52
7.0.280.0050.00915.59
7.0.270.0000.01215.58
7.0.260.0050.01215.45
7.0.250.0070.01015.54
7.0.240.0100.00215.56
7.0.230.0040.00615.63
7.0.220.0040.00615.65
7.0.210.0090.00415.43
7.0.200.0090.00515.43
7.0.190.0060.00515.46
7.0.180.0040.00515.57
7.0.170.0100.00315.54
7.0.160.0100.00215.47
7.0.150.0080.00315.44
7.0.140.0000.01215.60
7.0.130.0050.00815.64
7.0.120.0090.00615.63
7.0.110.0070.00415.48
7.0.100.0020.01215.64
7.0.90.0060.00515.63
7.0.80.0050.00715.45
7.0.70.0080.00515.53
7.0.60.0070.00915.63
7.0.50.0060.00715.70
7.0.40.0030.00813.56
7.0.30.0040.00813.59
7.0.20.0060.00713.66
7.0.10.0040.00913.63
7.0.00.0050.00713.47
5.6.400.0080.00314.62
5.6.390.0030.00714.56
5.6.380.0050.00914.73
5.6.370.0040.00914.67
5.6.360.0000.01114.76
5.6.350.0030.01014.33
5.6.340.0050.00914.39
5.6.330.0040.00714.63
5.6.320.0040.01214.50
5.6.310.0030.01014.42
5.6.300.0050.01014.55
5.6.290.0030.00814.36
5.6.280.0030.00914.41
5.6.270.0040.01214.52
5.6.260.0010.01214.46
5.6.250.0030.00714.45
5.6.240.0070.00514.36
5.6.230.0050.00514.45
5.6.220.0040.00914.31
5.6.210.0060.00814.55
5.6.200.0060.00714.29
5.6.190.0080.00614.54
5.6.180.0070.00514.62
5.6.170.0060.00614.58
5.6.160.0080.00814.43
5.6.150.0050.00714.45
5.6.140.0050.01014.42
5.6.130.0070.01014.57
5.6.120.0040.01214.40
5.6.110.0030.00714.56
5.6.100.0080.00714.57
5.6.90.0070.00714.50
5.6.80.0030.00714.41
5.6.70.0070.00714.38
5.6.60.0090.00714.30
5.6.50.0080.00314.58
5.6.40.0030.01214.53
5.6.30.0060.01214.64
5.6.20.0070.00714.43
5.6.10.0110.00714.59
5.6.00.0030.00614.64

preferences:
162.29 ms | 403 KiB | 5 Q