3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://80.211.175.169:7112/22.php"); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $headers = array(); $headers[] = "User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.4.4; Lenovo P90 Build/S100)"; $headers[] = "Host: swiftstreamz.com"; $headers[] = "Content-Encoding: gzip"; $headers[] = "Connection: Keep-Alive"; $headers[] = "Authorization: Basic QFN3aWZ0MTExIzpAU3dpZnQxMTEj"; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $res = curl_exec($ch); $package = json_decode($res,true); $package = $package['#EXTM3U']; $f = fopen('links.php','w'); $p = fopen('playlist.m3u','w'); fwrite($f,"<?php\n\$url = array(\n"); fwrite($p,"#EXTM3U\n"); foreach ($package as $id ) { $url = "http://80.211.175.169:7112/22.php".$id['cid']; curl_setopt($ch, CURLOPT_URL,$url ); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 2); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $headers = array(); $headers[] = "User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.4.4; Lenovo P90 Build/S100)"; $headers[] = "Host: swiftstreamz.com"; $headers[] = "Content-Encoding: gzip"; $headers[] = "Connection: Keep-Alive"; $headers[] = "Authorization: Basic QFN3aWZ0MTExIzpAU3dpZnQxMTEj"; $res = json_decode(curl_exec($ch),true); $res = $res['#EXTM3U']; foreach ($res as $channel) { $chann = str_replace (" ","",$channel['channel_title']); $stream = $channel['channel_url']; $cn = str_replace (" ","",$channel['category_name'])."_"; if (strpos($stream,".mp4") !== false ) { echo "skip video $chann\n"; } else { $login =""; $password =""; curl_setopt($ch, CURLOPT_URL, "http://80.211.175.169:7112/22.php"); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 2); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, "$login:$password"); $headers = array(); $headers[] = "User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.4.4; Lenovo P90 Build/S100)"; $headers[] = "Host: 80.211.175.169:7112"; $headers[] = "Content-Encoding: gzip"; $headers[] = "Content-Type: text/html"; $headers[] = "Connection: Keep-Alive"; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $token = curl_exec($ch); curl_setopt($ch, CURLOPT_URL,$stream.$token ); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); $res = curl_exec($ch); if((strpos($res,"Forbidden") !== false) || is_null($res) || empty($res) ) { echo "skip invalid token $cn$chann\n"; } else { fwrite($f,"'$cn$chann' => '$stream',\n"); fwrite($p,"#EXTINF:-1,".$cn.$chann."\n"); fwrite($p,"http://80.211.175.169:7112/".$cn.$chann.".m3u8\n"); } } } } fwrite($f,");");

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.0120.00418.96
8.3.30.0040.01118.67
8.3.20.0050.00319.34
8.3.10.0030.00623.66
8.3.00.0030.00620.69
8.2.170.0150.00622.96
8.2.160.0140.00022.00
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00717.97
8.2.120.0050.00326.35
8.2.110.0060.00322.31
8.2.100.0080.00417.91
8.2.90.0040.00419.34
8.2.80.0050.00317.97
8.2.70.0000.00817.88
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0030.00519.76
8.2.30.0000.00918.02
8.2.20.0070.00018.02
8.2.10.0040.00417.96
8.2.00.0050.00317.69
8.1.270.0050.00318.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.01
8.1.230.0030.00917.79
8.1.220.0070.00317.79
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00718.77
8.1.160.0040.00418.77
8.1.150.0040.00418.71
8.1.140.0040.00422.16
8.1.130.0050.00320.24
8.1.120.0040.00417.33
8.1.110.0050.00317.43
8.1.100.0040.00417.42
8.1.90.0000.00817.32
8.1.80.0030.00617.45
8.1.70.0000.00717.45
8.1.60.0000.00817.57
8.1.50.0000.00817.44
8.1.40.0040.00417.55
8.1.30.0030.00617.70
8.1.20.0030.00617.52
8.1.10.0040.00417.61
8.1.00.0000.00817.53
8.0.300.0000.00718.77
8.0.290.0030.00616.58
8.0.280.0000.00718.51
8.0.270.0070.00017.30
8.0.260.0060.00018.54
8.0.250.0000.00717.10
8.0.240.0050.00317.04
8.0.230.0000.00816.97
8.0.220.0000.00717.01
8.0.210.0030.00316.88
8.0.200.0030.00317.07
8.0.190.0040.00416.95
8.0.180.0050.00317.05
8.0.170.0030.00617.04
8.0.160.0050.00217.08
8.0.150.0000.00716.92
8.0.140.0000.00716.82
8.0.130.0060.00013.38
8.0.120.0000.00816.89
8.0.110.0000.00716.82
8.0.100.0000.00816.86
8.0.90.0040.00416.95
8.0.80.0070.01016.94
8.0.70.0040.00416.85
8.0.60.0090.00016.85
8.0.50.0030.00317.05
8.0.30.0050.01417.03
8.0.20.0170.00317.40
8.0.10.0000.00817.07
8.0.00.0090.00816.87
7.4.330.0020.00215.55
7.4.320.0030.00316.50
7.4.300.0070.00016.57
7.4.290.0030.00316.66
7.4.280.0000.00716.52
7.4.270.0030.00616.54
7.4.260.0040.00416.52
7.4.250.0000.00716.61
7.4.240.0030.00316.46
7.4.230.0000.00716.54
7.4.220.0060.00316.63
7.4.210.0100.00716.61
7.4.200.0000.00716.54
7.4.160.0090.00716.55
7.4.140.0110.00917.86
7.4.130.0070.01016.67
7.4.120.0090.00916.58
7.4.110.0140.01116.73
7.4.100.0070.01016.61
7.4.90.0120.00616.47
7.4.80.0150.00319.39
7.4.70.0110.00716.71
7.4.60.0090.00816.57
7.4.50.0070.00716.68
7.4.40.0090.00916.70
7.4.00.0070.00714.75
7.3.330.0000.00513.38
7.3.320.0000.00513.21
7.3.310.0040.00416.37
7.3.300.0060.00016.43
7.3.290.0030.00316.33
7.3.280.0100.00916.36
7.3.260.0110.00716.50
7.3.240.0130.00716.41
7.3.230.0060.01016.66
7.3.210.0100.00716.73
7.3.200.0040.01216.54
7.3.190.0100.01216.64
7.3.180.0160.00016.42
7.3.170.0070.01416.54
7.3.160.0040.01416.33
7.2.330.0090.00916.70
7.2.320.0100.01116.62
7.2.310.0060.01016.57
7.2.300.0150.00316.55
7.2.290.0060.01216.43
7.2.110.0470.01214.86
7.2.100.0650.00314.64
7.2.90.0580.00714.36
7.2.80.0660.01014.43
7.2.70.0610.01014.38
7.2.60.0690.00714.52
7.2.50.1190.00615.16
7.2.40.0620.00715.15
7.2.30.0620.00614.95
7.2.20.0880.01015.04
7.2.10.0710.01014.79
7.2.00.0610.01414.82
7.1.230.0750.01014.16
7.1.220.0520.01213.72
7.1.210.0560.00613.27
7.1.200.0870.00713.74
7.1.190.0680.00713.71
7.1.180.0940.00713.49
7.1.170.0640.00713.45
7.1.160.0980.01013.74
7.1.150.0650.00313.93
7.1.140.0950.00313.94
7.1.130.0680.00313.71
7.1.120.0810.00313.78
7.1.110.0610.00713.87
7.1.100.0560.01213.93
7.1.90.0740.00314.11
7.1.80.0740.00613.78
7.1.70.1070.00913.73
7.1.60.0970.00732.12
7.1.50.1710.01331.98
7.1.40.0750.01031.89
7.1.30.1620.00331.86
7.1.20.1020.01331.51
7.1.10.1070.00713.83
7.1.00.0770.00013.58
5.6.380.0040.01313.53

preferences:
50.18 ms | 400 KiB | 5 Q