3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/plain; charset=utf-8'); $body = file_get_contents('http://chat.stackoverflow.com/search?q=tag%3Acv-pls%20tag%3Adelv-pls&Room=11&page=1&pagesize=50&sort=newest'); $qids = []; libxml_use_internal_errors(true); $doc = new DOMDocument; $doc->loadHTML($body); $xpath = new DOMXpath($doc); $nodes = $xpath->query("//a[contains(@href, 'tagged')]/following-sibling::a[not(contains(@href, 'tagged')) and not(contains(@href, '#'))]"); foreach ($nodes as $node) { /** @var $node DOMElement */ if (preg_match('#(?:q|questions)/(?P<qid>\d+)#', $node->getAttribute('href'), $matches)) { $qids[] = $matches['qid']; } } print_r($qids);

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.3.40.0110.01119.04
8.3.30.0080.00819.17
8.3.20.0040.00819.04
8.3.10.0060.00321.03
8.3.00.0080.00018.00
8.2.170.0150.00622.96
8.2.160.0170.00322.41
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.02
8.2.110.0080.00420.96
8.2.100.0120.00018.09
8.2.90.0100.00019.30
8.2.80.0030.00518.17
8.2.70.0080.00017.50
8.2.60.0040.00418.18
8.2.50.0000.00818.07
8.2.40.0000.00918.34
8.2.30.0070.00018.11
8.2.20.0050.00317.93
8.2.10.0040.00418.07
8.2.00.0040.00417.84
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0030.00620.86
8.1.230.0110.00021.01
8.1.220.0080.00017.78
8.1.210.0050.00319.14
8.1.200.0030.00717.60
8.1.190.0000.00817.76
8.1.180.0080.00018.10
8.1.170.0000.00818.95
8.1.160.0070.00019.00
8.1.150.0060.00318.66
8.1.140.0030.00517.65
8.1.130.0030.00318.13
8.1.120.0000.00717.56
8.1.110.0000.00817.52
8.1.100.0030.00617.56
8.1.90.0050.00217.48
8.1.80.0040.00417.54
8.1.70.0040.00417.59
8.1.60.0090.00017.71
8.1.50.0050.00317.57
8.1.40.0030.00617.62
8.1.30.0000.00817.75
8.1.20.0000.00817.77
8.1.10.0080.00017.75
8.1.00.0050.00317.65
8.0.300.0020.00520.21
8.0.290.0040.00416.88
8.0.280.0000.00718.65
8.0.270.0000.00717.37
8.0.260.0000.00718.87
8.0.250.0000.00717.18
8.0.240.0050.00717.11
8.0.230.0070.00017.21
8.0.220.0000.00717.07
8.0.210.0070.00017.20
8.0.200.0040.00417.26
8.0.190.0090.00017.20
8.0.180.0000.00717.20
8.0.170.0030.00617.09
8.0.160.0060.00317.10
8.0.150.0080.00017.05
8.0.140.0000.00817.18
8.0.130.0060.00013.66
8.0.120.0040.00417.14
8.0.110.0040.00417.10
8.0.100.0080.00017.25
8.0.90.0050.00317.25
8.0.80.0030.01317.25
8.0.70.0030.00517.27
8.0.60.0040.00417.09
8.0.50.0030.00617.14
8.0.30.0110.00817.23
8.0.20.0100.01317.29
8.0.10.0040.00417.32
8.0.00.0150.00617.05
7.4.330.0000.00515.14
7.4.320.0060.00016.75
7.4.300.0040.00416.87
7.4.290.0000.00716.94
7.4.280.0000.00816.88
7.4.270.0030.00316.89
7.4.260.0060.00013.74
7.4.250.0030.00617.08
7.4.240.0060.00317.02
7.4.230.0040.00416.98
7.4.220.0130.00717.06
7.4.210.0070.01217.10
7.4.200.0030.00517.14
7.4.190.0000.00817.09
7.4.160.0070.01017.00
7.4.150.0150.00317.11
7.4.140.0140.00517.42
7.4.130.0060.01217.07
7.4.120.0150.00717.05
7.4.110.0120.00616.91
7.4.100.0090.00917.09
7.4.90.0110.00817.11
7.4.80.0130.01918.80
7.4.70.0070.01317.05
7.4.60.0090.00916.94
7.4.50.0080.00016.89
7.4.40.0060.00622.27
7.4.30.0140.00416.73
7.4.00.0070.01115.50
7.3.330.0030.00313.66
7.3.320.0060.00013.62
7.3.310.0040.00416.63
7.3.300.0050.00216.71
7.3.290.0080.00816.72
7.3.280.0060.01116.81
7.3.270.0120.00617.07
7.3.260.0180.00518.24
7.3.250.0090.01016.76
7.3.240.0070.01017.04
7.3.230.0030.01616.95
7.3.210.0150.00916.95
7.3.200.0080.01619.39
7.3.190.0130.00616.81
7.3.180.0080.01116.91
7.3.170.0030.01416.90
7.3.160.0040.01416.70
7.3.120.0040.01214.92
7.2.330.0130.01016.96
7.2.320.0100.00716.85
7.2.310.0110.01417.00
7.2.300.0090.00916.97
7.2.290.0000.01717.13
7.2.60.0110.00417.01
7.2.00.0060.00619.87
7.1.200.0030.00816.25
7.1.100.0470.00918.25
7.1.70.0060.01017.45
7.1.60.0140.01019.40
7.1.50.0100.01017.21
7.1.00.0130.05723.16
7.0.200.0000.00916.99
7.0.140.0030.06722.39
7.0.60.0030.04320.32
7.0.50.0030.05018.23
7.0.40.0070.04718.19
7.0.30.0100.08018.11
7.0.20.0170.07318.25
7.0.10.0000.08318.31
7.0.00.0100.05018.28
5.6.280.0070.07021.38
5.6.210.0100.07721.16
5.6.200.0030.07018.64
5.6.190.0070.04018.54
5.6.180.0030.04318.51
5.6.170.0000.07718.51
5.6.160.0100.08018.70
5.6.150.0130.05718.80
5.6.140.0100.06718.63
5.6.130.0130.06018.87
5.6.120.0030.04318.88
5.6.110.0070.08018.63
5.6.100.0070.08718.73
5.6.90.0200.07318.59
5.6.80.0100.07718.07
5.6.70.0170.03718.26
5.6.60.0070.08018.05
5.6.50.0030.06718.07
5.6.40.0070.07018.15
5.6.30.0100.07718.23
5.6.20.0070.08017.89
5.6.10.0030.07717.89
5.6.00.0100.07318.14
5.5.350.0200.04020.90
5.5.340.0100.08018.57
5.5.330.0030.05018.46
5.5.320.0100.03718.51
5.5.310.0070.07318.67
5.5.300.0100.08318.50
5.5.290.0070.04318.68
5.5.280.0170.06318.43
5.5.270.0070.08018.50
5.5.260.0100.04718.41
5.5.250.0070.08018.26
5.5.240.0030.07317.88
5.5.230.0030.04317.89
5.5.220.0030.05717.79
5.5.210.0030.04317.90
5.5.200.0100.05317.86
5.5.190.0070.04017.84
5.5.180.0070.08317.83
5.5.160.0070.06017.89
5.5.150.0100.03317.79
5.5.140.0100.07317.85
5.5.130.0070.05717.95
5.5.120.0100.05717.83
5.5.110.0100.07017.94
5.5.100.0030.05317.93
5.5.90.0070.08017.55
5.5.80.0170.06317.76
5.5.70.0030.05317.69
5.5.60.0070.08017.67
5.5.50.0070.08017.70
5.5.40.0130.06317.74
5.5.30.0000.06717.74
5.5.20.0070.07717.54
5.5.10.0030.08017.68
5.5.00.0070.06017.54
5.4.450.0030.05319.81
5.4.440.0070.07319.82
5.4.430.0170.06320.01
5.4.420.0100.07319.82
5.4.410.0030.04319.61
5.4.400.0000.08019.50
5.4.390.0030.04019.42
5.4.380.0070.05019.66
5.4.370.0000.08719.45
5.4.360.0030.08019.41
5.4.350.0130.07319.48
5.4.340.0070.05019.49
5.4.320.0000.04319.52
5.4.310.0100.04719.48
5.4.300.0030.07019.57
5.4.290.0170.05319.49
5.4.280.0030.08019.42
5.4.270.0100.07319.51
5.4.260.0130.07019.73
5.4.250.0070.05019.56
5.4.240.0030.05319.49
5.4.230.0000.05719.54
5.4.220.0030.07319.57
5.4.210.0100.05319.57
5.4.200.0030.07719.49
5.4.190.0100.07019.42
5.4.180.0070.07019.68
5.4.170.0070.05719.56
5.4.160.0070.07719.44
5.4.150.0070.07719.48
5.4.140.0000.06016.88
5.4.130.0100.07316.83
5.4.120.0000.06016.91
5.4.110.0030.07716.85
5.4.100.0100.07016.86
5.4.90.0070.04016.91
5.4.80.0030.07716.90
5.4.70.0200.06016.87
5.4.60.0030.07716.85
5.4.50.0030.07317.04
5.4.40.0130.06317.04
5.4.30.0030.05017.04
5.4.20.0000.07717.04
5.4.10.0170.06716.86
5.4.00.0070.07016.28
5.3.290.0130.05714.59
5.3.280.0100.07314.56
5.3.270.0030.08014.60
5.3.260.0100.06714.55
5.3.250.0030.08314.57
5.3.240.0070.07714.56
5.3.230.0170.06714.42
5.3.220.0100.07014.54
5.3.210.0000.07314.50
5.3.200.0070.05014.34
5.3.190.0070.06314.39
5.3.180.0030.07014.52
5.3.170.0100.07714.52
5.3.160.0030.04714.50
5.3.150.0100.04314.50
5.3.140.0070.04014.48
5.3.130.0100.05314.47
5.3.120.0030.04714.37
5.3.110.0070.03714.63
5.3.100.0100.05714.00
5.3.90.0130.07013.98
5.3.80.0030.07014.09
5.3.70.0000.06013.95
5.3.60.0100.03013.94
5.3.50.0100.03713.90
5.3.40.0130.03013.86
5.3.30.0130.06713.87
5.3.20.0030.05713.63
5.3.10.0100.07313.57
5.3.00.0070.06713.55
5.2.170.0000.04311.07
5.2.160.0000.03311.14
5.2.150.0030.03010.97
5.2.140.0030.03011.04
5.2.130.0070.03710.94
5.2.120.0000.05711.11
5.2.110.0070.06011.04
5.2.100.0100.04311.07
5.2.90.0030.06310.99
5.2.80.0070.03711.01
5.2.70.0130.03711.07
5.2.60.0030.03711.01
5.2.50.0100.03710.97
5.2.40.0000.06310.94
5.2.30.0070.06311.00
5.2.20.0100.03010.90
5.2.10.0100.05710.84
5.2.00.0100.04310.77
5.1.60.0030.0409.98
5.1.50.0030.0479.91
5.1.40.0030.02710.11
5.1.30.0030.02710.48
5.1.20.0000.06010.38
5.1.10.0000.05710.10
5.1.00.0030.05710.04
5.0.50.0000.0278.46
5.0.40.0000.0238.24
5.0.30.0000.0338.20
5.0.20.0030.0238.18
5.0.10.0070.0408.24
5.0.00.0000.0738.09
4.4.90.0000.0207.86
4.4.80.0000.0337.86
4.4.70.0030.0337.86
4.4.60.0000.0307.86
4.4.50.0030.0237.86
4.4.40.0030.0577.86
4.4.30.0000.0237.86
4.4.20.0030.0207.86
4.4.10.0000.0377.86
4.4.00.0000.0607.86
4.3.110.0030.0337.86
4.3.100.0100.0107.86
4.3.90.0030.0207.86
4.3.80.0030.0537.86
4.3.70.0000.0337.86
4.3.60.0030.0307.86
4.3.50.0000.0277.86
4.3.40.0030.0377.86
4.3.30.0000.0337.86
4.3.20.0000.0407.86
4.3.10.0070.0237.86
4.3.00.0000.0377.86

preferences:
36.96 ms | 400 KiB | 5 Q