3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://beta.congress.gov/search?pageSort=dateOfIntroduction%3Adesc&q={%22congress%22%3A%22112|113|111|110|109|108|107|106%22%2C%22source%22%3A%22legislation%22}&pageSize=25'; libxml_use_internal_errors(true); $dom = new DOMDocument; $dom->loadHTMLFile($url); header('content-type: text/plain'); $xpath = new DOMXPath($dom); $found = $xpath->query('//ul[@class="results_list"]/li'); $results = array(); foreach ($found as $li) { $bill = $xpath->query('h2/a', $li); $bill_name = $bill->item(0)->nodeValue; $bill_url = $bill->item(0)->getAttribute('href'); $sponsor = $xpath->query('table/tbody/tr/td/a', $li); $sponsor_name = $sponsor->item(0)->nodeValue; $sponsor_url = $sponsor->item(0)->getAttribute('href'); $results[] = array( $bill_name => $bill_url, $sponsor_name => $sponsor_url ); } var_dump($results);

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.60.0130.00319.14
8.3.50.0060.01122.36
8.3.40.0150.00319.29
8.3.30.0040.01119.72
8.3.20.0040.00420.79
8.3.10.0040.00422.56
8.3.00.0050.00322.93
8.2.180.0200.00317.25
8.2.170.0090.00622.96
8.2.160.0110.00419.66
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.01526.16
8.2.120.0080.00019.86
8.2.110.0040.00720.93
8.2.100.0060.00618.47
8.2.90.0080.00019.84
8.2.80.0030.00618.13
8.2.70.0080.00018.13
8.2.60.0070.00318.43
8.2.50.0000.00818.25
8.2.40.0040.00418.66
8.2.30.0080.00018.64
8.2.20.0000.00818.11
8.2.10.0050.00318.19
8.2.00.0000.00818.27
8.1.280.0110.00725.92
8.1.270.0000.01022.74
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00321.28
8.1.230.0040.00817.95
8.1.220.0040.00418.28
8.1.210.0040.00418.77
8.1.200.0030.00617.85
8.1.190.0000.00818.04
8.1.180.0030.00619.23
8.1.170.0000.00819.13
8.1.160.0060.00322.43
8.1.150.0000.00819.17
8.1.140.0000.01017.88
8.1.130.0030.00518.28
8.1.120.0000.00817.97
8.1.110.0040.00417.92
8.1.100.0000.00717.95
8.1.90.0020.00517.93
8.1.80.0050.00317.95
8.1.70.0000.00717.77
8.1.60.0030.00618.02
8.1.50.0040.00417.91
8.1.40.0050.00517.91
8.1.30.0030.00518.10
8.1.20.0060.00318.09
8.1.10.0040.00418.02
8.1.00.0040.00418.00
8.0.300.0040.00418.77
8.0.290.0040.00417.38
8.0.280.0070.00018.93
8.0.270.0000.00717.74
8.0.260.0070.00017.31
8.0.250.0040.00417.50
8.0.240.0040.00417.52
8.0.230.0080.00017.46
8.0.220.0040.00417.40
8.0.210.0040.00417.34
8.0.200.0020.00517.42
8.0.190.0050.00317.41
8.0.180.0050.00317.41
8.0.170.0080.00017.43
8.0.160.0080.00017.43
8.0.150.0000.00717.38
8.0.140.0030.00617.40
8.0.130.0030.00313.89
8.0.120.0030.00617.54
8.0.110.0060.00317.40
8.0.100.0000.00817.41
8.0.90.0000.00817.44
8.0.80.0130.00317.50
8.0.70.0080.00017.53
8.0.60.0060.00317.51
8.0.50.0030.00617.55
8.0.30.0150.00917.58
8.0.20.0110.01017.65
8.0.10.0070.00017.67
8.0.00.0070.01217.58
7.4.330.0000.00515.55
7.4.320.0000.00616.99
7.4.300.0000.00716.95
7.4.290.0040.00417.00
7.4.280.0000.00717.04
7.4.270.0030.00417.04
7.4.260.0030.00617.09
7.4.250.0040.00416.93
7.4.240.0000.00816.98
7.4.230.0000.00717.04
7.4.220.0090.01016.94
7.4.210.0040.01317.00
7.4.200.0070.00016.96
7.4.190.0040.00417.33
7.4.160.0080.00817.06
7.4.150.0130.00617.40
7.4.140.0090.01117.86
7.4.130.0100.01317.14
7.4.120.0080.01017.13
7.4.110.0120.00617.12
7.4.100.0090.00917.00
7.4.90.0060.01316.96
7.4.80.0120.00919.39
7.4.70.0100.01016.82
7.4.60.0080.00817.09
7.4.50.0020.00217.26
7.4.40.0040.01122.77
7.4.30.0110.00717.03
7.4.00.0030.00915.54
7.3.330.0030.00313.56
7.3.320.0000.00513.55
7.3.310.0040.00416.73
7.3.300.0030.00316.72
7.3.290.0120.00916.92
7.3.280.0090.00816.81
7.3.270.0150.00417.40
7.3.260.0070.01116.93
7.3.250.0170.00716.91
7.3.240.0070.01716.91
7.3.230.0090.00916.78
7.3.210.0120.00616.86
7.3.200.0040.01419.39
7.3.190.0060.01216.90
7.3.180.0070.01017.16
7.3.170.0070.01016.91
7.3.160.0100.00716.69
7.3.120.0030.00914.86
7.2.330.0110.00717.04
7.2.320.0150.00417.02
7.2.310.0030.01517.11
7.2.300.0170.00717.23
7.2.290.0090.00917.28
7.2.60.0030.01417.05
7.2.00.0000.01319.71
7.1.200.0070.00716.14
7.1.100.0080.00418.57
7.1.70.0550.00615.58
7.1.60.0580.00316.04
7.1.50.0540.00615.73
7.1.40.0500.00315.19
7.1.30.0440.01615.23
7.1.20.0520.00315.21
7.1.10.0440.00615.16
7.1.00.0400.01015.36
7.0.200.0500.00715.10
7.0.190.0530.00415.44
7.0.180.0440.00715.06
7.0.170.0460.00715.06
7.0.160.0410.00015.06
7.0.150.0440.00715.06
7.0.140.0400.00715.06
7.0.130.0410.01215.20
7.0.120.0330.01015.06
7.0.110.0400.00715.22
7.0.100.0600.01115.12
7.0.90.0360.01115.06
7.0.80.0460.00715.06
7.0.70.0490.00815.06
7.0.60.0620.01015.06
7.0.50.0570.00315.06
7.0.40.0120.00315.06
7.0.30.0080.00815.06
7.0.20.0060.00915.06
7.0.10.0080.00515.06
7.0.00.0090.00315.06
5.6.300.0100.04521.03
5.6.290.0100.04521.27
5.6.280.0070.04821.21
5.6.270.0110.04321.15
5.6.260.0130.04321.37
5.6.250.0150.04321.14
5.6.240.0070.05121.36
5.6.230.0130.03921.19
5.6.220.0070.04721.21
5.6.210.0070.04721.33
5.6.200.0170.04121.30
5.6.190.0110.04321.16
5.6.180.0030.05021.37
5.6.170.0240.05121.17
5.6.160.0110.04221.16
5.6.150.0150.03721.26
5.6.140.0100.05721.13
5.6.130.0030.04921.07
5.6.120.0110.04221.13
5.6.110.0040.04721.36
5.6.100.0100.08121.23
5.6.90.0140.04121.29
5.6.80.0100.07820.64
5.6.70.0150.07120.50
5.6.60.0070.07920.70
5.6.50.0030.04720.68
5.6.40.0130.07720.66
5.6.30.0000.04720.46
5.6.20.0150.03920.68
5.6.10.0040.04920.65
5.6.00.0100.06920.41
5.5.380.0040.04417.85
5.5.370.0090.04118.05
5.5.360.0190.06817.84
5.5.350.0130.03517.95
5.5.340.0140.04418.33
5.5.330.0100.04018.44
5.5.320.0130.07218.46
5.5.310.0030.04918.15
5.5.300.0070.04718.41
5.5.290.0060.05218.39
5.5.280.0130.05018.06
5.5.270.0100.06618.46
5.5.260.0090.04118.15
5.5.250.0060.06518.10
5.5.240.0100.04717.84
5.5.230.0090.03817.84
5.5.220.0160.03817.92
5.5.210.0090.04017.82
5.5.200.0140.04017.82
5.5.190.0070.04117.55
5.5.180.0030.04017.78
5.5.160.0130.03317.50
5.5.150.0100.03917.70
5.5.140.0070.04117.78
5.5.130.0140.04617.80
5.5.120.0030.06617.79
5.5.110.0070.03717.54
5.5.100.0000.04717.36
5.5.90.0040.04317.70
5.5.80.0040.04617.70
5.5.70.0000.04717.34
5.5.60.0100.04617.66
5.5.50.0030.04617.67
5.5.40.0000.04217.57
5.5.30.0030.04517.62
5.5.20.0000.05017.43
5.5.10.0130.03517.60
5.5.00.0070.04417.55
5.4.450.0040.04819.73
5.4.440.0070.04019.66
5.4.430.0070.04619.88
5.4.420.0030.04919.91
5.4.410.0090.03519.78
5.4.400.0100.05119.59
5.4.390.0060.03819.34
5.4.380.0100.03919.44
5.4.370.0030.04519.34
5.4.360.0100.04019.44
5.4.350.0030.04019.30
5.4.340.0060.03919.43
5.4.320.0130.03519.43
5.4.310.0030.03919.43
5.4.300.0030.04019.40
5.4.290.0030.04119.32
5.4.280.0070.03719.33
5.4.270.0090.05019.33
5.4.260.0090.03319.26
5.4.250.0030.04119.27
5.4.240.0030.04519.30
5.4.230.0100.04819.41
5.4.220.0100.05119.33
5.4.210.0070.03819.45
5.4.200.0070.03919.43
5.4.190.0100.03719.43
5.4.180.0130.04519.32
5.4.170.0100.03319.57
5.4.160.0070.03819.54
5.4.150.0060.03819.48
5.4.140.0100.03816.99
5.4.130.0000.05016.96
5.4.120.0230.02617.10
5.4.110.0120.03117.20
5.4.100.0000.04016.96
5.4.90.0100.03417.11
5.4.80.0120.03117.19
5.4.70.0000.04917.09
5.4.60.0070.03317.08
5.4.50.0040.04317.00
5.4.40.0000.04116.92
5.4.30.0030.04217.08
5.4.20.0000.04117.02
5.4.10.0030.04217.08
5.4.00.0030.03816.59
5.3.290.0030.04715.19
5.3.280.0130.03315.06
5.3.270.0030.05015.13
5.3.260.0030.04415.11
5.3.250.0060.03615.09
5.3.240.0090.03315.17
5.3.230.0110.03515.06
5.3.220.0150.03615.06
5.3.210.0070.04615.06
5.3.200.0000.04515.09
5.3.190.0030.04015.09
5.3.180.0000.04615.06
5.3.170.0030.04515.06
5.3.160.0000.04915.06
5.3.150.0090.03215.06
5.3.140.0030.04015.06
5.3.130.0000.04715.06
5.3.120.0230.04015.06
5.3.110.0130.03015.06
5.3.100.0060.03715.06
5.3.90.0070.03815.06
5.3.80.0070.04015.06
5.3.70.0070.04415.06
5.3.60.0060.04015.06
5.3.50.0130.03815.06
5.3.40.0130.02915.06
5.3.30.0100.04315.06
5.3.20.0000.04715.06
5.3.10.0160.02815.06
5.3.00.0040.04015.06

preferences:
41.29 ms | 401 KiB | 5 Q