3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = <<<DATA This is a link <a href="https://stackoverflow.com/">SO</a> and this is <a href="http://test.test">unsubscribe</a> and another and this is <a href="http://test.test">UnSubScribe</a>. DATA; $dom = new DomDocument(); $dom->loadHTML($data); $xpath = new DOMXPath($dom); $query = "//a[contains(translate(., 'UNSUBSCRIBE', 'unsubscribe'),'unsubscribe')]"; $anchors = $xpath->query($query); foreach ($anchors as $a) { echo sprintf("%s: %s" . PHP_EOL, $a->nodeValue, $a->getAttribute("href") ); }

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.90.0070.00518.80
8.5.80.0120.00617.98
8.5.70.0110.00817.95
8.5.60.0120.00617.85
8.5.50.0090.00618.62
8.5.40.0070.00318.77
8.5.30.0100.00619.49
8.5.20.0080.00519.55
8.5.10.0160.00717.76
8.5.00.0130.01118.58
8.4.240.0110.00919.87
8.4.230.0150.01019.86
8.4.220.0110.00719.92
8.4.210.0100.00620.77
8.4.200.0270.00619.93
8.4.190.0170.00919.92
8.4.180.0140.01320.96
8.4.170.0160.01022.78
8.4.160.0130.00622.64
8.4.150.0120.00618.54
8.4.140.0150.00917.93
8.4.130.0150.00718.92
8.4.120.0130.00420.45
8.4.110.0160.01021.36
8.4.100.0130.00618.99
8.4.90.0100.01219.33
8.4.80.0120.00618.88
8.4.70.0120.00418.96
8.4.60.0110.00718.39
8.4.50.0130.00618.50
8.4.40.0180.00518.03
8.4.30.0100.00719.31
8.4.20.0180.00718.05
8.4.10.0100.00618.93
8.3.330.0130.00918.73
8.3.320.0130.01018.80
8.3.310.0130.00718.68
8.3.300.0130.01018.83
8.3.290.0140.00818.80
8.3.280.0170.00718.67
8.3.270.0130.00816.87
8.3.260.0070.00816.93
8.3.250.0100.01018.04
8.3.240.0110.00816.99
8.3.230.0080.00616.91
8.3.220.0080.00518.10
8.3.210.0080.00917.81
8.3.200.0100.00716.90
8.3.190.0110.00817.30
8.3.180.0110.01017.26
8.3.170.0110.01017.87
8.3.160.0110.00817.30
8.3.150.0070.01417.25
8.3.140.0090.00717.18
8.3.130.0110.00617.93
8.3.120.0100.00919.14
8.3.110.0100.00616.91
8.3.100.0070.00917.04
8.3.90.0070.00821.96
8.3.80.0100.00617.89
8.3.70.0120.01116.95
8.3.60.0130.00616.98
8.3.50.0100.01018.68
8.3.40.0170.00518.49
8.3.30.0110.00818.62
8.3.20.0140.00721.20
8.3.10.0130.00621.44
8.3.00.0110.00422.12
8.2.330.0140.00918.29
8.2.320.0140.00818.36
8.2.310.0110.01118.36
8.2.300.0260.00618.32
8.2.290.0170.00819.87
8.2.280.0200.00616.80
8.2.270.0220.00416.93
8.2.260.0210.00717.80
8.2.250.0160.00816.72
8.2.240.0160.00717.24
8.2.230.0200.00918.88
8.2.220.0140.00820.33
8.2.210.0150.00821.72
8.2.200.0140.01016.69
8.2.190.0200.00717.66
8.2.180.0180.00821.34
8.2.170.0230.00618.79
8.2.160.0200.00520.63
8.2.150.0160.00721.92
8.2.140.0150.00721.39
8.2.130.0180.00422.15
8.2.120.0150.00822.20
8.2.110.0160.00819.80
8.2.100.0200.00418.18
8.2.90.0160.00718.19
8.2.80.0170.00618.80
8.2.70.0210.00417.95
8.2.60.0090.00718.10
8.2.50.0160.00718.08
8.2.40.0140.00618.37
8.2.30.0090.00818.35
8.2.20.0130.01019.46
8.2.10.0120.01118.12
8.2.00.0130.00918.81
8.1.340.0240.00917.82
8.1.330.0180.01020.38
8.1.320.0230.00516.50
8.1.310.0150.00816.78
8.1.300.0150.00818.29
8.1.290.0180.00523.65
8.1.280.0200.00621.18
8.1.270.0190.00620.97
8.1.260.0140.00822.15
8.1.250.0140.00522.97
8.1.240.0100.00719.68
8.1.230.0150.00419.56
8.1.220.0110.00918.00
8.1.210.0090.01018.45
8.1.200.0090.00917.69
8.1.190.0130.00517.66
8.1.180.0050.00918.00
8.1.170.0100.00617.90
8.1.160.0120.00518.51
8.1.150.0080.00618.49
8.1.140.0080.00217.81
8.1.130.0100.00718.78
8.1.120.0140.00717.83
8.1.110.0100.00717.89
8.1.100.0100.00617.89
8.1.90.0100.00617.89
8.1.80.0110.00517.86
8.1.70.0070.00917.90
8.1.60.0080.00818.04
8.1.50.0170.00317.81
8.1.40.0130.00418.00
8.1.30.0140.00318.04
8.1.20.0130.00518.07
8.1.10.0130.00518.01
8.1.00.0070.01117.95
8.0.300.0070.00718.93
8.0.290.0070.00817.23
8.0.280.0070.00618.12
8.0.270.0030.00617.30
8.0.260.0100.00517.34
8.0.250.0120.00317.29
8.0.240.0110.00417.42
8.0.230.0070.00617.44
8.0.220.0080.00717.32
8.0.210.0150.00617.37
8.0.200.0120.00617.43
8.0.190.0110.00417.38
8.0.180.0090.00317.41
8.0.170.0170.00517.43
8.0.160.0200.00217.41
8.0.150.0120.00717.23
8.0.140.0140.00617.24
8.0.130.0130.00917.28
8.0.120.0090.00417.16
8.0.110.0140.00517.33
8.0.100.0080.01017.23
8.0.90.0110.00717.24
8.0.80.0090.00717.21
8.0.70.0140.00517.08
8.0.60.0120.00617.20
8.0.50.0130.00817.11
8.0.30.0180.00517.09
8.0.20.0100.00617.41
8.0.10.0110.00617.32
7.4.330.0090.00416.33
7.4.320.0100.00317.82
7.4.300.0100.00316.90
7.4.290.0090.00417.87
7.4.280.0080.00517.88
7.4.270.0110.00517.78
7.4.260.0140.00317.56
7.4.250.0100.00617.67
7.4.240.0050.00817.73
7.4.230.0100.00617.85
7.4.220.0160.00316.88
7.4.210.0080.00717.83
7.4.200.0120.00617.66
7.4.190.0080.00617.75
7.4.180.0090.00717.52
7.4.160.0100.00617.73
7.4.150.0110.00717.49
7.4.140.0120.00516.90
7.4.130.0150.00216.66
7.4.120.0080.00616.62
7.4.110.0100.00216.61
7.4.100.0080.00416.91
7.4.90.0090.00616.85
7.4.80.0110.00316.78
7.4.70.0100.00416.75
7.4.60.0080.00617.67
7.4.50.0130.00717.46
7.4.40.0150.00717.42
7.4.30.0130.00517.47
7.4.20.0120.00617.67
7.4.10.0150.00816.48
7.4.00.0150.00417.64

preferences:
106.69 ms | 1311 KiB | 5 Q