3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://secure.i-web.ch/dweb/uri/de/behoerdenmain/gerichtetop/rechtsprechung/?action=info&pubid=4762'; $site = getSiteContent($url); // echo $site; $linksArr = getDomLinks($site); displayArray($linksArr); exit; function getSiteContent($url, $cookieFile = NULL) { $data = file_get_contents($url); return $data; } function getDomLinks($contents) { $linkArr = array(); $dom = new domDocument; @$dom->loadHTML($contents); $links = $dom->getElementsByTagName('a'); foreach ($links as $tag) { $linkArr[$tag->getAttribute('href')] = $tag->childNodes->item(0)->nodeValue; } return $linkArr; } function displayArray($aArray) { if (is_array($aArray) && (count($aArray) > 0)) { print("<table border=1>"); print("<tr><th>Key</th><th>Value</th></tr>"); foreach ($aArray as $aKey => $aValue) { print("<tr>"); if (!is_array($aValue)) { if (empty($aValue)) { print("<td>$aKey</td><td><i>$aValue</i></td>"); } else { print("<td>$aKey</td><td>$aValue</td>"); } } else { print("<td>$aKey(array)</td><td>"); displayArray($aValue); print("</td>"); } print("</tr>"); } print("</table>"); } else { print("<i>empty or invalid</i>"); } } ?>

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.0060.00916.73
8.3.50.0110.00422.84
8.3.40.0060.01218.73
8.3.30.0070.00719.26
8.3.20.0040.00420.33
8.3.10.0000.00823.60
8.3.00.0080.00019.38
8.2.180.0070.00718.43
8.2.170.0110.00422.96
8.2.160.0090.00620.45
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0070.00020.99
8.2.110.0030.00620.47
8.2.100.0110.00018.16
8.2.90.0030.00619.23
8.2.80.0050.00317.97
8.2.70.0000.00817.75
8.2.60.0000.00817.68
8.2.50.0110.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00418.15
8.2.20.0030.00517.88
8.2.10.0040.00418.07
8.2.00.0030.00617.81
8.1.280.0100.00725.92
8.1.270.0050.00323.82
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.85
8.1.230.0040.00819.16
8.1.220.0030.00517.77
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0030.00518.90
8.1.170.0040.00718.63
8.1.160.0040.00422.14
8.1.150.0000.00818.96
8.1.140.0000.00717.47
8.1.130.0080.00017.42
8.1.120.0000.00717.49
8.1.110.0060.00317.46
8.1.100.0050.00317.43
8.1.90.0000.00717.51
8.1.80.0000.00717.54
8.1.70.0030.00317.39
8.1.60.0000.00917.50
8.1.50.0030.00517.50
8.1.40.0020.00517.46
8.1.30.0000.00817.58
8.1.20.0030.00517.66
8.1.10.0000.00817.55
8.1.00.0040.00417.53
8.0.300.0030.00618.77
8.0.290.0040.00417.00
8.0.280.0070.00018.39
8.0.270.0040.00417.32
8.0.260.0030.00316.95
8.0.250.0050.00217.13
8.0.240.0080.00017.02
8.0.230.0040.00417.18
8.0.220.0030.00517.01
8.0.210.0020.00517.00
8.0.200.0000.00717.14
8.0.190.0070.00017.08
8.0.180.0070.00317.05
8.0.170.0030.00517.01
8.0.160.0030.00417.08
8.0.150.0040.00416.91
8.0.140.0040.00416.96
8.0.130.0060.00313.43
8.0.120.0040.00416.94
8.0.110.0000.00817.00
8.0.100.0040.00417.13
8.0.90.0040.00417.13
8.0.80.0100.00717.01
8.0.70.0050.00217.01
8.0.60.0040.00417.11
8.0.50.0000.00716.94
8.0.30.0080.01217.21
8.0.20.0110.00917.40
8.0.10.0040.00417.04
8.0.00.0100.01116.86
7.4.330.0000.00515.16
7.4.320.0070.00016.55
7.4.300.0060.00016.48
7.4.290.0070.00016.54
7.4.280.0110.00016.61
7.4.270.0070.00416.61
7.4.260.0060.00316.55
7.4.250.0040.00416.53
7.4.240.0070.00116.50
7.4.230.0000.00716.76
7.4.220.0110.00616.73
7.4.210.0060.00916.50
7.4.200.0040.00416.71
7.4.160.0040.02116.74
7.4.150.0110.00817.40
7.4.140.0110.00817.86
7.4.130.0100.00916.55
7.4.120.0120.00816.52
7.4.110.0100.00716.76
7.4.100.0150.00316.53
7.4.90.0040.01416.68
7.4.80.0120.00619.39
7.4.70.0120.01216.51
7.4.60.0140.00416.63
7.4.50.0030.00516.48
7.4.40.0120.00616.45
7.4.30.0160.00016.74
7.4.00.0090.00615.04
7.3.330.0030.00313.33
7.3.320.0030.00313.40
7.3.310.0030.00316.44
7.3.300.0000.00616.56
7.3.290.0110.00716.51
7.3.280.0060.01216.49
7.3.270.0110.00717.40
7.3.260.0130.00616.67
7.3.250.0110.00716.70
7.3.240.0060.01016.59
7.3.230.0060.01216.60
7.3.210.0060.01116.48
7.3.200.0110.00719.39
7.3.190.0090.00916.55
7.3.180.0060.01016.45
7.3.170.0100.00716.64
7.3.160.0060.00916.61
7.3.10.0120.00316.46
7.3.00.0060.01016.53
7.2.330.0000.01716.76
7.2.320.0000.01716.56
7.2.310.0040.01716.58
7.2.300.0090.00916.63
7.2.290.0030.01316.88
7.2.130.0030.01316.95
7.2.120.0040.01216.89
7.2.110.0050.00517.11
7.2.100.0040.01217.00
7.2.90.0060.00617.04
7.2.80.0060.01017.12
7.2.70.0070.01317.16
7.2.60.0100.00816.76
7.2.50.0040.01117.05
7.2.40.0000.01417.03
7.2.30.0060.00617.16
7.2.20.0030.00917.01
7.2.10.0070.00717.04
7.2.00.0040.00918.38
7.1.250.0030.01315.64
7.1.200.0000.01515.81
7.1.100.0000.01118.46
7.1.70.0060.00917.23
7.1.60.0140.01019.46
7.1.50.0040.01917.21
7.1.00.0000.08022.69
7.0.200.0000.00916.80
7.0.140.0000.07722.49
7.0.60.0100.06720.31
7.0.50.0030.06018.21
7.0.40.0070.08720.56
7.0.30.0130.04720.55
7.0.20.0200.07720.45
7.0.10.0070.08320.49
7.0.00.0130.08320.46
5.6.280.0030.07721.37
5.6.210.0030.05320.89
5.6.200.0100.08318.61
5.6.190.0100.03720.95
5.6.180.0330.07321.11
5.6.170.0230.05320.87
5.6.160.0070.04020.85
5.6.150.0030.04318.57
5.6.140.0030.04018.66
5.6.130.0070.08318.56
5.6.120.0030.08721.55
5.6.110.0070.08721.39
5.6.100.0100.08021.43
5.6.90.0030.07021.50
5.6.80.0130.04020.68
5.6.70.2400.05020.90
5.5.350.0130.08020.85
5.5.340.0130.07318.28
5.5.330.0000.08020.85
5.5.320.0330.07320.62
5.5.310.0230.03720.60
5.5.300.0070.04018.37
5.5.290.0070.07318.41
5.5.280.0030.04321.07
5.5.270.0030.08321.16
5.5.260.0100.08321.16
5.5.250.0100.08020.82
5.5.240.0300.07320.65
5.4.450.0130.04319.79
5.4.440.0230.05319.57
5.4.430.0130.04719.61
5.4.420.0130.03319.61
5.4.410.0130.04719.48
5.4.400.0470.02719.26
5.4.390.0170.05019.37
5.4.380.0370.06018.96
5.4.370.0270.05318.85
5.4.360.0330.05319.00
5.4.350.0470.04718.71
5.4.340.0370.05018.72
5.4.320.0100.03912.54
5.4.310.0050.03912.53
5.4.300.0100.04212.54
5.4.290.0070.04712.53
5.4.280.0080.03412.43
5.4.270.0080.03612.43
5.4.260.0080.03612.43
5.4.250.0080.03512.43
5.4.240.0060.03812.43
5.4.230.0070.04112.42
5.4.220.0090.04812.43
5.4.210.0090.03512.42
5.4.200.0060.04412.42
5.4.190.0070.03712.42
5.4.180.0070.03812.42
5.4.170.0060.03612.43
5.4.160.0040.03712.42
5.4.150.0090.03312.42
5.4.140.0060.03812.10
5.4.130.0050.04212.09
5.4.120.0090.03912.05
5.4.110.0100.04512.04
5.4.100.0090.03312.04
5.4.90.0050.03812.05
5.4.80.0060.04212.05
5.4.70.0040.03612.04
5.4.60.0070.03312.04
5.4.50.0070.04112.04
5.4.40.0040.03812.03
5.4.30.0060.03512.02
5.4.20.0070.03312.03
5.4.10.0040.03612.02
5.4.00.0060.03511.52
5.3.290.0070.04312.80
5.3.280.0070.03612.72
5.3.270.0080.04012.73
5.3.260.0070.04012.73
5.3.250.0040.04012.73
5.3.240.0060.04212.72
5.3.230.0070.03912.72
5.3.220.0080.04112.69
5.3.210.0110.04112.69
5.3.200.0080.03412.68
5.3.190.0080.03812.69
5.3.180.0070.05112.68
5.3.170.0070.03612.68
5.3.160.0070.03612.68
5.3.150.0100.03812.68
5.3.140.0050.03912.68
5.3.130.0070.03812.66
5.3.120.0080.03712.67
5.3.110.0050.03912.67
5.3.100.0090.03812.15
5.3.90.0050.03912.13
5.3.80.0040.03812.13
5.3.70.0080.03912.13
5.3.60.0060.03612.11
5.3.50.0050.03812.05
5.3.40.0040.04012.06
5.3.30.0060.03812.02
5.3.20.0040.03711.80
5.3.10.0090.03511.77
5.3.00.0040.03811.75
5.2.170.0020.0339.27
5.2.160.0030.0329.26
5.2.150.0050.0329.26
5.2.140.0070.0369.27
5.2.130.0030.0319.22
5.2.120.0070.0329.22
5.2.110.0080.0279.22
5.2.100.0050.0289.22
5.2.90.0050.0299.22
5.2.80.0090.0319.21
5.2.70.0100.0319.21
5.2.60.0060.0339.17
5.2.50.0030.0359.14
5.2.40.0030.0319.12
5.2.30.0060.0329.09
5.2.20.0030.0359.08
5.2.10.0050.0339.00
5.2.00.0050.0348.86
5.1.60.0010.0288.14
5.1.50.0020.0288.15
5.1.40.0020.0278.12
5.1.30.0050.0278.46
5.1.20.0050.0268.48
5.1.10.0070.0258.22
5.1.00.0050.0268.22
5.0.50.0040.0226.69
5.0.40.0030.0206.55
5.0.30.0020.0326.36
5.0.20.0040.0196.33
5.0.10.0040.0226.30
5.0.00.0050.0306.29
4.4.90.0070.0184.78
4.4.80.0030.0174.76
4.4.70.0030.0184.75
4.4.60.0010.0214.75
4.4.50.0030.0164.77
4.4.40.0020.0264.71
4.4.30.0040.0144.76
4.4.20.0030.0154.85
4.4.10.0040.0174.85
4.4.00.0050.0254.76
4.3.110.0030.0194.67
4.3.100.0040.0154.66
4.3.90.0040.0184.63
4.3.80.0030.0244.59
4.3.70.0020.0184.63
4.3.60.0020.0174.63
4.3.50.0050.0134.63
4.3.40.0030.0244.54
4.3.30.0020.0163.31
4.3.20.0030.0233.29
4.3.10.0000.0183.25
4.3.00.0000.02018.23

preferences:
40.22 ms | 401 KiB | 5 Q