3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<HTML <div class="directions"> <div class="left">ä,ö,ü</div> <div class="right">right</div> </div> HTML; libxml_use_internal_errors(true); libxml_disable_entity_loader(true); $html = new DOMDocument(); $html->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8')); $xpath = new DOMXpath($html); $result = $xpath->query('//div[contains(@class, "left")]'); echo $result[0]->textContent;

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.0160.00318.41
8.4.10.0130.00320.02
8.3.150.0120.00617.23
8.3.140.0040.01119.03
8.3.130.0050.00318.98
8.3.120.0040.00419.21
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0130.00726.77
8.3.80.0030.00617.00
8.3.70.0060.01218.77
8.3.60.0100.00718.85
8.3.50.0090.00924.62
8.3.40.0120.00619.26
8.3.30.0140.00419.00
8.3.20.0060.00321.25
8.3.10.0030.00522.52
8.3.00.0040.00422.23
8.2.270.0130.00717.27
8.2.260.0080.00019.46
8.2.250.0040.00417.48
8.2.240.0100.00619.32
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0030.00617.13
8.2.190.0140.00716.88
8.2.180.0110.00425.92
8.2.170.0120.00619.20
8.2.160.0150.00022.96
8.2.150.0000.00925.66
8.2.140.0060.00324.66
8.2.130.0060.00326.16
8.2.120.0040.00426.16
8.2.110.0040.00721.29
8.2.100.0030.00918.28
8.2.90.0030.00518.28
8.2.80.0040.00418.30
8.2.70.0030.00618.18
8.2.60.0050.00318.47
8.2.50.0000.00818.10
8.2.40.0020.00618.33
8.2.30.0070.00518.24
8.2.20.0080.00518.20
8.2.10.0050.00718.93
8.2.00.0080.00418.65
8.1.310.0100.00717.19
8.1.300.0190.00018.06
8.1.290.0060.00330.84
8.1.280.0130.00325.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00324.23
8.1.230.0040.00723.07
8.1.220.0000.00918.03
8.1.210.0040.00418.77
8.1.200.0040.00417.61
8.1.190.0040.00417.47
8.1.180.0000.00819.30
8.1.170.0050.00418.24
8.1.160.0080.00418.42
8.1.150.0100.00318.49
8.1.140.0100.00119.32
8.1.130.0080.00419.06
8.1.120.0070.00617.72
8.1.110.0060.00517.68
8.1.100.0050.00817.66
8.1.90.0100.00217.73
8.1.80.0000.01217.70
8.1.70.0040.00817.71
8.1.60.0070.00717.78
8.1.50.0140.00017.76
8.1.40.0100.00317.76
8.1.30.0110.00217.80
8.1.20.0100.00417.87
8.1.10.0090.00617.84
8.1.00.0130.00417.77
8.0.300.0050.00322.03
8.0.290.0040.00417.25
8.0.280.0060.00618.19
8.0.270.0060.00617.97
8.0.260.0090.00319.02
8.0.250.0090.00417.45
8.0.240.0080.00617.53
8.0.230.0080.00517.50
8.0.220.0070.00717.47
8.0.210.0030.00917.47
8.0.200.0090.00417.42
8.0.190.0120.00017.50
8.0.180.0100.00317.37
8.0.170.0070.00517.38
8.0.160.0110.00117.45
8.0.150.0090.00517.30
8.0.140.0070.00717.33
8.0.130.0090.00316.10
8.0.120.0060.00817.36
8.0.110.0150.00117.29
8.0.100.0100.00517.32
8.0.90.0100.00617.27
8.0.80.0130.00617.35
8.0.70.0110.00417.25
8.0.60.0110.00517.31
8.0.50.0130.00417.36
8.0.30.0130.00517.45
8.0.20.0100.00917.39
8.0.10.0090.00717.34
8.0.00.0090.00717.31
7.4.330.0040.00617.29
7.4.320.0060.00617.24
7.4.300.0000.01217.25
7.4.290.0090.00317.21
7.4.280.0090.00317.28
7.4.270.0130.00217.20
7.4.260.0080.00716.11
7.4.250.0110.00517.14
7.4.240.0120.00217.06
7.4.230.0110.00617.08
7.4.220.0080.00517.07
7.4.210.0110.00417.00
7.4.200.0100.00317.21
7.4.190.0110.00417.32
7.4.180.0070.00717.25
7.4.160.0130.00517.30
7.4.150.0060.01117.29
7.4.140.0110.00617.22
7.4.130.0130.00517.13
7.4.120.0140.00317.10
7.4.110.0130.00417.09
7.4.100.0150.00517.16
7.4.90.0090.00917.16
7.4.80.0140.00517.95
7.4.70.0130.00417.08
7.4.60.0140.00517.09
7.4.50.0110.00717.08
7.4.40.0120.00517.03
7.4.30.0120.00317.11
7.4.20.0080.00817.21
7.4.10.0110.00616.52
7.4.00.0100.00816.50
7.3.330.0110.00317.00
7.3.320.0130.00115.86
7.3.310.0100.00516.97
7.3.300.0120.00316.97
7.3.290.0090.00816.85
7.3.280.0100.00816.95
7.3.270.0140.00517.16
7.3.260.0090.01116.92
7.3.250.0140.00517.10
7.3.240.0150.00417.15
7.3.230.0170.00217.08
7.3.220.0110.00817.15
7.3.210.0110.00816.96
7.3.200.0140.00417.06
7.3.190.0120.00617.04
7.3.180.0110.00717.00
7.3.170.0100.00816.90
7.3.160.0130.00516.92
7.3.150.0140.00517.16
7.3.140.0160.00317.15
7.3.130.0100.00716.36
7.3.120.0130.00416.44
7.3.110.0120.00616.45
7.3.100.0110.00616.40
7.3.90.0130.00316.43
7.3.80.0100.00816.27
7.3.70.0090.00816.36
7.3.60.0110.00516.30
7.3.50.0110.00716.44
7.3.40.0080.00816.44
7.3.30.0110.00616.39
7.3.20.0110.00816.42
7.3.10.0130.00516.40
7.3.00.0090.00916.45
7.2.340.0170.00217.17
7.2.330.0120.00717.11
7.2.320.0150.00517.08
7.2.310.0140.00417.13
7.2.300.0140.00616.94
7.2.290.0110.00616.99
7.2.280.0160.00217.02
7.2.270.0130.00717.12
7.2.260.0140.00216.36
7.2.250.0100.00716.45
7.2.240.0110.00516.57
7.2.230.0110.00616.59
7.2.220.0090.00816.47
7.2.210.0140.00316.43
7.2.200.0140.00516.47
7.2.190.0170.00116.41
7.2.180.0110.00616.55
7.2.170.0090.00816.48
7.2.160.0130.00516.50
7.2.150.0120.00716.51
7.2.140.0120.00716.59
7.2.130.0110.00716.52
7.2.120.0130.00616.59
7.2.110.0120.00816.62
7.2.100.0110.00916.55
7.2.90.0140.00816.85
7.2.80.0130.00716.69
7.2.70.0120.00716.86
7.2.60.0200.00516.84
7.2.50.0090.01016.84
7.2.40.0120.00816.84
7.2.30.0120.00616.98
7.2.20.0130.00716.81
7.2.10.0120.00716.92
7.2.00.0150.00316.88

preferences:
27.51 ms | 403 KiB | 5 Q