3v4l.org

run code in 300+ PHP versions simultaneously
<?php function processURL($url) { $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => 2 )); $result = curl_exec($ch); curl_close($ch); return $result; } // Tag als parameter auswerten $tag = 'IWH3F04ED0'; //$_GET["ID"]; $status = "0"; $db_server = 'rdbms.strato.de'; $db_benutzer = 'U1248927'; $db_passwort = 'oger1302'; $db_name = 'DB1248927'; $dz = mysql_connect($db_server, $db_benutzer, $db_passwort); mysql_select_db($db_name); $testguid = "Select * from `IWH` where `ID`='$tag'"; $result = mysql_query($testguid); if ($ds = mysql_fetch_object($result)) { $status = $ds ->Status; } $client_id = "4e950e12c0464c158995b32ac82792d1"; $url = 'https://api.instagram.com/v1/tags/'.$tag.'/media/recent?client_id='.$client_id; $all_result = processURL($url); $decoded_results = json_decode($all_result, true); if(empty($decoded_results['data'])) { // Status = '1' setzen ggf. aktivieren if ($status =="0") { // update status = 1 $aendern = "UPDATE `IWH` SET `Status` = '1' WHERE `ID`='$tag'"; $update = mysql_query($aendern); if ($update) { $status="1"; } } echo '<img src="https://scontent.cdninstagram.com/hphotos-xaf1/t51.2885-15/e15/11351734_443374872513879_1446730755_n.jpg" style="width:100%;" border="0" alt="Null" />'; } else { // count = Count +1 hochsetzen $aendern = "UPDATE `IWH` Set `Count` = `Count`+ 1 WHERE `ID`='$tag'"; $update = mysql_query($aendern); if ($update) { $status="1"; } header('location: https://instagram.com/explore/tags/'.$tag.'/'); } mysql_close($dz); ?>

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.0150.00018.79
8.3.30.0070.00718.84
8.3.20.0080.00020.34
8.3.10.0040.00423.40
8.3.00.0040.00422.39
8.2.170.0160.00622.96
8.2.160.0030.01020.44
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0060.00317.63
8.2.110.0060.00320.35
8.2.100.0090.00317.56
8.2.90.0080.00018.22
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0030.00617.80
8.2.50.0000.00918.07
8.2.40.0040.00421.01
8.2.30.0050.00317.89
8.2.20.0070.00017.57
8.2.10.0000.00717.95
8.2.00.0040.00417.94
8.1.270.0040.00420.29
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.09
8.1.230.0070.00420.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0000.00917.22
8.1.180.0030.00518.10
8.1.170.0000.00818.58
8.1.160.0050.00221.92
8.1.150.0020.00518.74
8.1.140.0040.00417.32
8.1.130.0000.00717.57
8.1.120.0040.00417.40
8.1.110.0080.00017.41
8.1.100.0080.00017.44
8.1.90.0040.00417.35
8.1.80.0030.00317.40
8.1.70.0000.00717.30
8.1.60.0030.00717.42
8.1.50.0000.00717.47
8.1.40.0040.00417.55
8.1.30.0000.00817.65
8.1.20.0040.00417.66
8.1.10.0040.00417.58
8.1.00.0080.00017.41
8.0.300.0040.00420.09
8.0.290.0060.00316.63
8.0.280.0000.00718.40
8.0.270.0030.00317.06
8.0.260.0070.00017.19
8.0.250.0040.00416.89
8.0.240.0000.00717.01
8.0.230.0040.00416.95
8.0.220.0040.00416.94
8.0.210.0050.00316.96
8.0.200.0030.00316.94
8.0.190.0070.00416.91
8.0.180.0040.00416.82
8.0.170.0060.00316.92
8.0.160.0030.00516.97
8.0.150.0030.00316.70
8.0.140.0040.00416.80
8.0.130.0030.00313.32
8.0.120.0050.00316.93
8.0.110.0000.00816.78
8.0.100.0040.00416.70
8.0.90.0050.00316.91
8.0.80.0060.01216.88
8.0.70.0000.00716.80
8.0.60.0040.00416.76
8.0.50.0040.00416.77
8.0.30.0090.00816.89
8.0.20.0110.00817.40
8.0.10.0030.00517.05
8.0.00.0050.01216.84
7.4.330.0000.00615.08
7.4.320.0000.00616.45
7.4.300.0040.00416.51
7.4.290.0070.00016.54
7.4.280.0030.00516.64
7.4.270.0020.00516.38
7.4.260.0000.00816.36
7.4.250.0030.00516.50
7.4.240.0020.00616.41
7.4.230.0000.00716.35
7.4.220.0100.00716.53
7.4.210.0060.01216.69
7.4.200.0030.00316.71
7.4.160.0060.01616.52
7.4.150.0150.00317.40
7.4.140.0090.01017.86
7.4.130.0070.01016.63
7.4.120.0130.00316.55
7.4.110.0030.01316.36
7.4.100.0090.00916.51
7.4.90.0080.00816.54
7.4.80.0140.00319.39
7.4.70.0090.00916.53
7.4.60.0040.01216.61
7.4.50.0040.00416.60
7.4.40.0130.00416.50
7.4.30.0030.01416.60
7.4.10.0070.00816.41
7.4.00.0030.01015.73
7.3.330.0020.00213.14
7.3.320.0000.00513.18
7.3.310.0030.00516.32
7.3.300.0030.00316.23
7.3.290.0100.00516.28
7.3.280.0080.00916.29
7.3.270.0130.00717.40
7.3.260.0080.00916.38
7.3.250.0080.01016.47
7.3.240.0040.01516.30
7.3.230.0150.00916.43
7.3.210.0070.01016.48
7.3.200.0060.01019.39
7.3.190.0060.00916.67
7.3.180.0060.01016.30
7.3.170.0030.01216.46
7.3.160.0090.00916.41
7.3.130.0100.00716.31
7.3.120.0050.00815.71
7.3.110.0060.00715.50
7.3.100.0110.00315.63
7.3.90.0080.00715.52
7.3.80.0090.00315.75
7.3.70.0080.00915.43
7.3.60.0060.00815.46
7.3.50.0030.01215.50
7.3.40.0080.00515.35
7.3.30.0130.00315.49
7.3.20.0080.00717.36
7.3.10.0070.01017.25
7.3.00.0080.00617.20
7.2.330.0130.00516.32
7.2.320.0070.01016.21
7.2.310.0120.01216.28
7.2.300.0100.00716.76
7.2.290.0120.00616.66
7.2.260.0100.00716.39
7.2.250.0030.01216.45
7.2.240.0040.01115.75
7.2.230.0060.00915.53
7.2.220.0080.00315.63
7.2.210.0100.00715.65
7.2.200.0070.00815.63
7.2.190.0060.00815.61
7.2.180.0120.00515.44
7.2.170.0050.00915.68
7.2.160.0060.00815.52
7.2.150.0060.00917.40
7.2.140.0070.00517.44
7.2.130.0020.01317.41
7.2.120.0080.00617.50
7.2.110.0100.00517.52
7.2.100.0070.00617.55
7.2.90.0130.00317.50
7.2.80.0060.00917.15
7.2.70.0070.00917.57
7.2.60.0060.00817.23
7.2.50.0080.00817.37
7.2.40.0050.01017.55
7.2.30.0050.01317.56
7.2.20.0070.01017.61
7.2.10.0090.00717.47
7.2.00.0040.01018.09
7.1.330.0050.00716.20
7.1.320.0030.01216.55
7.1.310.0050.01016.47
7.1.300.0070.00916.34
7.1.290.0070.00616.32
7.1.280.0040.00916.46
7.1.270.0060.00716.33
7.1.260.0060.00916.43
7.1.250.0070.00716.40
7.1.240.0080.00416.86
7.1.230.0100.00617.20
7.1.220.0000.01517.03
7.1.210.0000.01417.21
7.1.200.0080.00516.23
7.1.190.0000.01217.17
7.1.180.0030.00617.25
7.1.170.0140.00016.91
7.1.160.0030.01317.08
7.1.150.0040.01617.17
7.1.140.0110.00417.04
7.1.130.0050.00917.06
7.1.120.0100.00317.11
7.1.110.0090.00617.13
7.1.100.0060.00717.55
7.1.90.0050.00717.21
7.1.80.0030.01017.01
7.1.70.0020.00816.94
7.1.60.0100.01018.65
7.1.50.0090.01116.99
7.1.40.0110.01117.23
7.1.30.0110.00317.05
7.1.20.0030.01017.25
7.1.10.0130.00017.18
7.1.00.0040.04519.70
7.0.330.0070.00716.87
7.0.320.0040.01116.60
7.0.310.0060.00816.93
7.0.300.0000.01216.95
7.0.290.0040.00816.80
7.0.280.0040.01216.91
7.0.270.0070.00716.75
7.0.260.0070.00216.79
7.0.250.0120.00316.96
7.0.240.0040.01216.94
7.0.230.0110.00417.02
7.0.220.0000.01417.04
7.0.210.0000.01517.13
7.0.200.0360.00715.94
7.0.190.0110.00416.76
7.0.180.0040.01116.89
7.0.170.0050.00517.02
7.0.160.0080.00816.95
7.0.150.0030.01116.86
7.0.140.0090.00616.98
7.0.130.0070.00717.09
7.0.120.0060.00617.00
7.0.110.0040.01116.85
7.0.100.0060.04018.43
7.0.90.0090.04018.42
7.0.80.0080.04018.40
7.0.70.0050.04318.38
7.0.60.0070.04518.56
7.0.50.0300.02318.60
7.0.40.0090.04117.50
7.0.30.0110.04417.41
7.0.20.0050.05017.50
7.0.10.0130.04117.51
7.0.00.0100.04217.44
5.6.400.0090.00315.61
5.6.390.0030.01215.77
5.6.380.0040.01215.71
5.6.370.0100.00315.72
5.6.360.0070.01015.58
5.6.350.0070.00715.75
5.6.340.0030.00915.83
5.6.330.0030.00715.54
5.6.320.0060.00915.82
5.6.310.0040.01115.66
5.6.300.0000.01515.64
5.6.290.0060.01215.54
5.6.280.0030.04018.30
5.6.270.0030.00715.75
5.6.260.0110.00415.82
5.6.250.0020.04418.29
5.6.240.0050.04418.09
5.6.230.0120.04218.17
5.6.220.0070.04018.09
5.6.210.0050.03318.07
5.6.200.0050.04518.46
5.6.190.0100.03918.53
5.6.180.0060.02918.33
5.6.170.0070.03618.39
5.6.160.0110.03318.41
5.6.150.0040.03618.41
5.6.140.0090.04018.35
5.6.130.0080.02518.52
5.6.120.0060.04318.34
5.6.110.0130.04018.36
5.6.100.0080.04718.35
5.6.90.0040.04618.30
5.6.80.0080.03817.99
5.6.70.0110.03718.05
5.6.60.0070.04318.07
5.6.50.0070.04918.02
5.6.40.0030.02717.96
5.6.30.0070.04518.05
5.6.20.0030.04317.98
5.6.10.0020.04717.96
5.6.00.0020.04918.09
5.5.380.0100.04317.95
5.5.370.0070.03917.92
5.5.360.0070.03917.91
5.5.350.0040.04718.11
5.5.340.0120.03818.21
5.5.330.0100.04218.29
5.5.320.0120.03818.13
5.5.310.0090.04318.15
5.5.300.0120.03818.23
5.5.290.0050.04418.12
5.5.280.0080.04318.22
5.5.270.0070.04318.11
5.5.260.0080.02918.17
5.5.250.0100.04018.07
5.5.240.0080.04017.98
5.5.230.0070.04017.96
5.5.220.0050.03217.65
5.5.210.0100.02017.88
5.5.200.0070.04017.82
5.5.190.0090.03917.82
5.5.180.0070.04017.85
5.5.170.0060.00815.35
5.5.160.0120.03817.86
5.5.150.0140.03517.89
5.5.140.0100.03817.85
5.5.130.0130.01817.79
5.5.120.0060.04317.93
5.5.110.0050.04417.72
5.5.100.0030.04817.81
5.5.90.0070.03817.87
5.5.80.0110.03917.79
5.5.70.0050.04317.66
5.5.60.0110.03717.87
5.5.50.0000.05117.68
5.5.40.0070.04017.90
5.5.30.0070.04117.72
5.5.20.0040.04717.78
5.5.10.0140.02317.75
5.5.00.0040.04517.69
5.4.450.0030.07019.42
5.4.440.0100.04719.22
5.4.430.0100.06319.54
5.4.420.0070.07319.35
5.4.410.0070.08019.41
5.4.400.0030.07719.14
5.4.390.0130.07018.90
5.4.380.0000.08319.23
5.4.370.0030.07318.95
5.4.360.0070.07319.22
5.4.350.0070.07019.04
5.4.340.0070.04719.03
5.4.320.0070.07719.13
5.4.310.0000.08018.95
5.4.300.0130.06718.89
5.4.290.0030.07719.19
5.4.280.0170.06718.95
5.4.270.0130.06319.09
5.4.260.0170.06319.12
5.4.250.0170.07019.21
5.4.240.0070.07319.12
5.4.230.0000.08019.12
5.4.220.0170.06319.04
5.4.210.0070.07318.95
5.4.200.0130.06718.89
5.4.190.0130.06319.15
5.4.180.0170.06719.12
5.4.170.0070.07319.18
5.4.160.0100.04019.02
5.4.150.0030.06019.03
5.4.140.0070.06716.41
5.4.130.0100.06716.35
5.4.120.0070.07316.41
5.4.110.0070.07016.43
5.4.100.0100.06716.46
5.4.90.0030.06716.50
5.4.80.0030.04016.45
5.4.70.0100.06716.38
5.4.60.0030.07316.37
5.4.50.0100.03716.43
5.4.40.0100.07016.38
5.4.30.0130.07016.40
5.4.20.0000.07316.33
5.4.10.0070.04316.31
5.4.00.0070.07015.86

preferences:
55.09 ms | 400 KiB | 5 Q