3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'selenagomez'; //$_GET['username'] /* # Use the Curl extension to query Google and get back a page of results $url = "http://instagram.myhacks.net/processing_request.php?username=$username"; $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $html = curl_exec($ch); curl_close($ch); $dom = new DOMDocument(); @$dom->loadHTML($html); foreach($dom->getElementsByid('#current-followers-value') as $link) { # Show the <a href> echo $link->first_child()->plaintext; echo "<br />"; } */ $page = "http://instagram.myhacks.net/processing_request.php?username=" . $username; $dom = new DOMDocument(); @$dom->loadHTML($page); $xpath = new DomXpath($dom); foreach($xpath->query("//tr[@class='row profile-info-row']") as $row){ echo $xpath->query(".//span[contains(@id,'current-followers-value')]",$row)->item(0)->nodeValue."\n"; echo 7*7; } echo 7*7; /* include('simple_html_dom.php'); $followerslink = $html->getElementById('current-followers-value'); echo $followerslink->textContent; echo "<br />"; */ ?>

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.70.0040.01418.93
8.3.60.0140.00716.75
8.3.50.0080.01116.88
8.3.40.0080.00818.92
8.3.30.0040.01119.14
8.3.20.0000.00820.59
8.3.10.0090.00022.34
8.3.00.0000.00823.86
8.2.190.0070.01117.00
8.2.180.0150.00418.79
8.2.170.0080.00822.96
8.2.160.0110.00620.50
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0080.00021.43
8.2.120.0050.00226.35
8.2.110.0060.00321.26
8.2.100.0040.00818.41
8.2.90.0080.00019.46
8.2.80.0040.00417.97
8.2.70.0030.00618.00
8.2.60.0030.00518.18
8.2.50.0000.00918.16
8.2.40.0040.00420.86
8.2.30.0040.00419.55
8.2.20.0040.00418.50
8.2.10.0040.00418.51
8.2.00.0000.00718.51
8.1.280.0090.00925.92
8.1.270.0080.00022.26
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00624.17
8.1.230.0070.00420.69
8.1.220.0040.00418.02
8.1.210.0030.00518.77
8.1.200.0000.00917.50
8.1.190.0040.00417.47
8.1.180.0050.00318.10
8.1.170.0000.00818.89
8.1.160.0000.00719.20
8.1.150.0000.00720.41
8.1.140.0000.00719.91
8.1.130.0000.00819.13
8.1.120.0000.01017.83
8.1.110.0060.00317.69
8.1.100.0030.00517.80
8.1.90.0070.00017.75
8.1.80.0040.00417.82
8.1.70.0040.00417.69
8.1.60.0040.00817.79
8.1.50.0040.00417.89
8.1.40.0000.00817.79
8.1.30.0050.00317.95
8.1.20.0040.00418.02
8.1.10.0040.00417.82
8.1.00.0040.00417.84
8.0.300.0000.00819.29
8.0.290.0060.00317.00
8.0.280.0070.00018.76
8.0.270.0000.00717.58
8.0.260.0070.00418.71
8.0.250.0000.00717.28
8.0.240.0030.00317.34
8.0.230.0040.00417.20
8.0.220.0080.00017.06
8.0.210.0050.00317.16
8.0.200.0000.00717.33
8.0.190.0040.00417.31
8.0.180.0040.00417.30
8.0.170.0030.00317.15
8.0.160.0040.00417.32
8.0.150.0000.00717.29
8.0.140.0080.00017.06
8.0.130.0000.00613.55
8.0.120.0000.00717.05
8.0.110.0000.01017.28
8.0.100.0040.00417.07
8.0.90.0080.00017.05
8.0.80.0140.00717.28
8.0.70.0000.00717.21
8.0.60.0000.00717.04
8.0.50.0040.00417.18
8.0.30.0130.00517.31
8.0.20.0120.00917.41
8.0.10.0050.00317.26
8.0.00.0090.00917.27
7.4.330.0000.00515.55
7.4.320.0000.00716.82
7.4.300.0030.00316.87
7.4.290.0000.00716.99
7.4.280.0070.00216.66
7.4.270.0030.00616.71
7.4.260.0070.00016.86
7.4.250.0040.00416.85
7.4.240.0040.00417.00
7.4.230.0030.00316.81
7.4.220.0000.01916.95
7.4.210.0040.01116.83
7.4.200.0050.00316.95
7.4.160.0090.00916.65
7.4.150.0300.01617.40
7.4.140.0090.01117.86
7.4.130.0120.00916.70
7.4.120.0060.01216.71
7.4.110.0000.01716.90
7.4.100.0140.00716.80
7.4.90.0070.01016.82
7.4.80.0130.00619.39
7.4.70.0060.01216.93
7.4.60.0090.01316.84
7.4.50.0120.00016.65
7.4.40.0120.00316.83
7.4.30.0130.00316.65
7.4.00.0000.00715.19
7.3.330.0000.00613.42
7.3.320.0060.00013.46
7.3.310.0000.00716.46
7.3.300.0030.00316.55
7.3.290.0090.00716.54
7.3.280.0090.00816.53
7.3.270.0040.01217.40
7.3.260.0100.00816.63
7.3.250.0110.01116.64
7.3.240.0090.00816.75
7.3.230.0090.00916.59
7.3.210.0070.01516.77
7.3.200.0120.00316.72
7.3.190.0070.01016.64
7.3.180.0060.00916.78
7.3.170.0090.00616.50
7.3.160.0030.01316.84
7.2.330.0160.00317.00
7.2.320.0060.01016.70
7.2.310.0130.00317.18
7.2.300.0080.00816.94
7.2.290.0070.01017.05
7.2.60.0030.00917.18
7.1.200.0000.00915.63
7.1.90.0000.01218.26
7.1.80.0040.00817.79
7.1.70.0070.00417.10
7.1.60.0150.00935.05
7.1.50.0140.01034.79
7.1.40.0190.00634.46
7.1.30.0190.00634.60
7.1.20.0160.01034.64
7.1.10.0000.01316.59
7.1.00.0060.00616.75
7.0.230.0040.00817.54
7.0.220.0060.00618.06
7.0.210.0000.01116.94
7.0.200.0040.00817.08
7.0.190.0030.00916.75
7.0.180.0060.00616.26
7.0.170.0060.00916.33
7.0.160.0000.01216.36
7.0.150.0110.00316.50
7.0.140.0040.00816.44
7.0.130.0090.00316.55
7.0.120.0060.00616.76
7.0.110.0040.00816.36
7.0.100.0060.00616.55
7.0.90.0030.00916.34
7.0.80.0090.00316.41
7.0.70.0000.01216.43
7.0.60.0030.01016.21
7.0.50.0060.00616.43
7.0.40.0050.00816.44
7.0.30.0030.00916.66
7.0.20.0040.01216.52
7.0.10.0030.01316.51
7.0.00.0060.01016.49

preferences:
31.8 ms | 401 KiB | 5 Q