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); $followerslink = $html->getElementById('current-followers-value'); echo $followerslink->item(0)->nodeValue; 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.60.0110.00416.75
8.3.50.0070.00716.71
8.3.40.0130.00319.00
8.3.30.0040.01118.95
8.3.20.0000.00720.38
8.3.10.0040.00422.07
8.3.00.0050.00323.86
8.2.180.0140.00718.67
8.2.170.0100.00722.96
8.2.160.0100.00320.61
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00421.18
8.2.120.0070.00026.35
8.2.110.0040.00721.17
8.2.100.0060.00617.97
8.2.90.0000.00818.09
8.2.80.0050.00318.15
8.2.70.0040.00418.05
8.2.60.0050.00317.93
8.2.50.0050.00318.21
8.2.40.0040.00420.66
8.2.30.0040.00419.50
8.2.20.0040.00418.26
8.2.10.0000.00718.22
8.2.00.0040.00418.30
8.1.280.0070.01425.92
8.1.270.0060.00324.08
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0050.00519.31
8.1.230.0070.00422.88
8.1.220.0080.00018.02
8.1.210.0030.00518.77
8.1.200.0000.00917.50
8.1.190.0000.00917.24
8.1.180.0030.00618.10
8.1.170.0000.00818.93
8.1.160.0040.00419.03
8.1.150.0000.00720.24
8.1.140.0080.00019.83
8.1.130.0040.00419.02
8.1.120.0100.00017.76
8.1.110.0070.00017.59
8.1.100.0040.00417.67
8.1.90.0040.00417.61
8.1.80.0050.00217.66
8.1.70.0000.00717.58
8.1.60.0060.00617.76
8.1.50.0040.00417.75
8.1.40.0000.00817.65
8.1.30.0030.00617.84
8.1.20.0000.00717.79
8.1.10.0040.00417.82
8.1.00.0040.00417.74
8.0.300.0040.00419.85
8.0.290.0000.00717.00
8.0.280.0070.00018.68
8.0.270.0080.00017.39
8.0.260.0090.00018.66
8.0.250.0000.00817.23
8.0.240.0030.00517.20
8.0.230.0000.00717.05
8.0.220.0000.00717.16
8.0.210.0030.00617.18
8.0.200.0030.00717.16
8.0.190.0000.00817.12
8.0.180.0000.00717.21
8.0.170.0070.00217.07
8.0.160.0050.00317.09
8.0.150.0030.00717.14
8.0.140.0070.00017.11
8.0.130.0000.00513.59
8.0.120.0030.00517.02
8.0.110.0050.00217.08
8.0.100.0000.00716.95
8.0.90.0040.00417.06
8.0.80.0090.00917.08
8.0.70.0000.00717.09
8.0.60.0000.00717.19
8.0.50.0000.00717.21
8.0.30.0080.00917.40
8.0.20.0110.00817.42
8.0.10.0040.00417.38
8.0.00.0070.01017.32
7.4.330.0050.00015.55
7.4.320.0030.00316.78
7.4.300.0060.00016.59
7.4.290.0000.00816.79
7.4.280.0080.00016.75
7.4.270.0050.00516.80
7.4.260.0070.00016.83
7.4.250.0070.00016.80
7.4.240.0030.00316.92
7.4.230.0030.00316.73
7.4.220.0040.01516.96
7.4.210.0100.00616.58
7.4.200.0070.00016.88
7.4.160.0080.00816.67
7.4.150.0260.00617.40
7.4.140.0110.00717.86
7.4.130.0070.01116.68
7.4.120.0080.01316.79
7.4.110.0100.00716.71
7.4.100.0070.01016.80
7.4.90.0100.00616.59
7.4.80.0180.00719.39
7.4.70.0140.00316.82
7.4.60.0120.00616.75
7.4.50.0070.01116.83
7.4.40.0030.01216.68
7.4.30.0040.01316.69
7.4.00.0080.00914.95
7.3.330.0000.00513.40
7.3.320.0000.00613.39
7.3.310.0030.00316.51
7.3.300.0070.00016.45
7.3.290.0090.00916.52
7.3.280.0110.00716.55
7.3.270.0170.00017.40
7.3.260.0120.00816.63
7.3.250.0090.00816.66
7.3.240.0090.00916.61
7.3.230.0100.00716.50
7.3.210.0040.01816.64
7.3.200.0100.00616.75
7.3.190.0070.01416.80
7.3.180.0130.00316.65
7.3.170.0120.00316.45
7.3.160.0100.01016.56
7.3.120.0080.00914.92
7.3.110.0070.00814.93
7.3.100.0050.01014.85
7.3.90.0040.00814.94
7.3.80.0040.00814.89
7.3.70.0050.00614.99
7.3.60.0070.00914.90
7.3.50.0030.01014.99
7.3.40.0050.01014.97
7.3.30.0040.00914.88
7.3.20.0050.00816.75
7.3.10.0040.00616.59
7.3.00.0100.00316.48
7.2.330.0030.01316.85
7.2.320.0070.01016.85
7.2.310.0030.01616.98
7.2.300.0070.01016.97
7.2.290.0110.01116.72
7.2.250.0050.01115.43
7.2.240.0080.01015.15
7.2.230.0050.00815.20
7.2.220.0050.00615.11
7.2.210.0070.00514.99
7.2.200.0070.00714.95
7.2.190.0030.01215.15
7.2.180.0050.00815.24
7.2.170.0020.01315.13
7.2.120.2230.00716.48
7.2.110.0030.01016.56
7.2.100.0230.00716.66
7.2.90.0140.00516.72
7.2.80.0120.00816.73
7.2.70.0230.00317.13
7.2.60.0180.00216.83
7.2.50.0110.00617.02
7.2.40.0170.00717.08
7.2.30.0210.00617.17
7.2.20.0130.00516.95
7.2.10.0280.00017.00
7.2.00.0160.00917.13
7.1.330.0100.00615.73
7.1.320.0050.00815.91
7.1.310.0020.01115.84
7.1.300.0080.00615.82
7.1.290.0070.00415.64
7.1.280.0100.00615.76
7.1.270.0020.00615.87
7.1.260.0070.00515.84
7.1.240.0180.00015.81
7.1.230.0360.00315.77
7.1.220.0250.00415.73
7.1.210.0100.00815.91
7.1.200.0140.00615.73
7.1.190.0100.00415.89
7.1.180.0230.00515.64
7.1.170.0140.00315.57
7.1.160.0150.00815.66
7.1.150.0210.00015.91
7.1.140.0130.00915.63
7.1.130.0140.00915.89
7.1.120.0150.00615.68
7.1.110.0090.00915.94
7.1.100.0140.01115.70
7.1.90.0130.01016.90
7.1.80.0130.00916.92
7.1.70.0140.00716.52
7.1.60.0240.00625.38
7.1.50.0220.00725.41
7.1.40.0160.01125.12
7.1.30.0290.00825.15
7.1.20.0180.00925.18
7.1.10.0160.00516.12
7.1.00.0160.00416.24
7.0.320.0200.00415.43
7.0.310.0260.00415.11
7.0.300.0100.01015.66
7.0.290.0140.00015.30
7.0.280.0230.00415.63
7.0.270.0210.00615.58
7.0.260.0250.00015.24
7.0.250.0140.01115.61
7.0.240.0150.00915.63
7.0.230.0300.00616.79
7.0.220.0120.00916.80
7.0.210.0140.00815.99
7.0.200.0150.00616.08
7.0.190.0160.00715.97
7.0.180.0170.00615.86
7.0.170.0120.00615.95
7.0.160.0190.00415.95
7.0.150.0160.00315.78
7.0.140.0150.00315.91
7.0.130.0070.00715.94
7.0.120.0160.00616.07
7.0.110.0130.00615.99
7.0.100.0090.00615.84
7.0.90.0120.00615.86
7.0.80.0140.00915.89
7.0.70.0140.00915.85
7.0.60.0190.00915.89
7.0.50.0130.00415.96
7.0.40.0090.00815.09
7.0.30.0100.00815.08
7.0.20.0090.00515.01
7.0.10.0080.00615.06
7.0.00.0030.01214.93
5.6.380.0130.00014.41

preferences:
67.11 ms | 401 KiB | 5 Q