3v4l.org

run code in 500+ PHP versions simultaneously
<?php $html = <<<HTML <li class="item-133"><a href="/webdesign-tipps" title="Wissenswertes zu Webdesign, Grafikdesign oder Onlinemarketing">Wissenswertes</a></li><li class="item-115"><a href="/webagentur" >Webagentur</a></li><li class="item-257"><a href="/team" >Team</a></li><li class="item-116 menu-parent"><a href="/support" >Support<span class="menu-toggler"></span></a></li><li class="item-350"><a href="/jobs" >Jobs</a></li><li class="item-120"><a href="/kontakt" >Kontakt</a></li></ul> HTML; $dom = new DOMDocument; libxml_use_internal_errors(true); $dom->loadHTML($html); $xpath = new DOMXPath($dom); $result = []; foreach ($xpath->query('//a[text() = "Kontakt"]') as $a) { $result[] = $dom->saveHtml($a); } var_export($result);

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.70.0060.00216.92
8.5.60.0080.01017.08
8.5.50.0120.00618.84
8.5.30.0090.00820.27
8.5.20.0110.00720.40
8.5.10.0110.01018.88
8.5.00.0150.00920.28
8.4.180.0140.01020.10
8.4.170.0130.01420.99
8.4.160.0140.00921.88
8.4.150.0070.00617.08
8.4.140.0110.01017.80
8.4.130.0120.01018.07
8.4.120.0040.01622.51
8.4.110.0100.01119.11
8.4.100.0110.00817.99
8.4.90.0110.00818.21
8.4.80.0120.00720.00
8.4.70.0130.00818.46
8.4.60.0080.01219.22
8.4.50.0070.00419.30
8.4.40.0170.00320.13
8.4.30.0160.00320.58
8.4.20.0070.01317.88
8.4.10.0030.00620.82
8.3.300.0040.00618.79
8.3.290.0120.00821.26
8.3.280.0130.00718.63
8.3.270.0120.00917.30
8.3.260.0140.00516.93
8.3.250.0100.00619.23
8.3.240.0120.00717.56
8.3.230.0090.00816.93
8.3.220.0080.00217.25
8.3.210.0040.00419.03
8.3.200.0030.00516.82
8.3.190.0120.00617.46
8.3.180.0110.00816.90
8.3.170.0130.00617.68
8.3.160.0060.01217.21
8.3.150.0110.00821.18
8.3.140.0040.00419.36
8.3.130.0110.00418.78
8.3.120.0110.00720.94
8.3.110.0060.00320.94
8.3.100.0000.00824.06
8.3.90.0030.01226.77
8.3.80.0060.00317.00
8.3.70.0070.01117.00
8.3.60.0070.01117.25
8.3.50.0060.00920.46
8.3.40.0080.00622.67
8.3.30.0090.00619.67
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.300.0110.01122.57
8.2.290.0140.00619.24
8.2.280.0030.00518.64
8.2.270.0150.00317.53
8.2.260.0070.00717.09
8.2.250.0030.00616.92
8.2.240.0060.00319.47
8.2.230.0030.01322.58
8.2.220.0100.00037.54
8.2.210.0150.00426.77
8.2.200.0110.00018.54
8.2.190.0090.00616.88
8.2.180.0070.01025.92
8.2.170.0040.01119.46
8.2.160.0100.00322.96
8.2.150.0110.00425.66
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00420.08
8.2.110.0040.00722.66
8.2.100.0040.00818.41
8.2.90.0000.00819.61
8.2.80.0050.00317.97
8.2.70.0000.00818.00
8.2.60.0090.00018.30
8.2.50.0030.00618.07
8.2.40.0000.00818.53
8.2.30.0000.00818.43
8.2.20.0050.00321.01
8.2.10.0030.00518.51
8.2.00.0070.00319.60
8.1.340.0160.00817.91
8.1.330.0130.00716.57
8.1.320.0140.00616.16
8.1.310.0050.00317.42
8.1.300.0030.00618.60
8.1.290.0090.00030.84
8.1.280.0070.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.03
8.1.230.0090.00318.02
8.1.220.0050.00318.03
8.1.210.0030.00618.77
8.1.200.0090.00017.85
8.1.190.0040.00417.72
8.1.180.0000.00818.10
8.1.170.0080.00019.09
8.1.160.0040.00419.25
8.1.150.0000.00719.00
8.1.140.0000.00817.79
8.1.130.0040.00417.80
8.1.120.0080.00017.76
8.1.110.0050.00317.85
8.1.100.0040.00417.76
8.1.90.0000.00817.86
8.1.80.0030.00617.76
8.1.70.0030.00517.70
8.1.60.0040.00417.84
8.1.50.0000.00817.83
8.1.40.0180.00617.74
8.1.30.0140.00717.97
8.1.20.0190.00017.98
8.1.10.0220.00417.93
8.1.00.0220.00417.68
8.0.300.0030.00519.02
8.0.290.0000.00717.25
8.0.280.0030.00318.80
8.0.270.0070.00017.19
8.0.260.0030.00317.18
8.0.250.0030.00317.38
8.0.240.0050.00317.33
8.0.230.0070.00017.29
8.0.220.0030.00317.34
8.0.210.0000.00817.23
8.0.200.0050.00217.24
8.0.190.0080.00017.36
8.0.180.0000.00717.17
8.0.170.0170.00017.25
8.0.160.0110.00617.29
8.0.150.0160.00017.13
8.0.140.0100.00517.30
8.0.130.0080.00417.27
8.0.120.0140.00317.14
8.0.110.0130.00317.21
8.0.100.0100.00317.27
8.0.90.0180.00017.12
8.0.80.0150.00317.16
8.0.70.0140.00717.21
8.0.60.0160.00317.22
8.0.50.0190.00017.28
8.0.30.0100.01017.18
8.0.20.0210.00317.23
8.0.10.0150.00617.27
7.4.330.0020.00215.55
7.4.320.0030.00316.89
7.4.300.0030.00316.91
7.4.290.0040.00416.75
7.4.280.0120.00016.82
7.4.270.0120.01216.87
7.4.260.0170.00616.89
7.4.250.0240.00016.88
7.4.240.0130.01316.88
7.4.230.0140.00916.82
7.4.220.0210.00016.86
7.4.210.0110.00716.86
7.4.200.0110.00816.88
7.4.190.0090.00916.83
7.4.180.0070.00716.92
7.4.160.0140.00016.93
7.4.150.0120.00416.73
7.4.140.0090.00516.78
7.4.130.0120.00616.85
7.4.120.0130.00316.65
7.4.110.0140.00516.77
7.4.100.0130.00616.79
7.4.90.0060.01216.74
7.4.80.0180.00316.80
7.4.70.0150.00616.82
7.4.60.0200.00016.82
7.4.50.0140.00716.57
7.4.40.0200.00016.66
7.4.30.0140.00516.89
7.4.20.0170.00316.77
7.4.10.0150.00616.69
7.4.00.0140.00516.75

preferences:
24.53 ms | 1252 KiB | 5 Q