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,");"); <?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)
7.2.80.0430.00814.35
7.2.70.0290.00614.73
7.2.60.0480.00514.79
7.2.50.0170.00714.84
7.2.40.0350.00814.87
7.2.30.0460.00514.71
7.2.20.0390.00614.80
7.2.10.0270.00714.63
7.2.00.0250.01014.77
7.1.190.0470.00713.50
7.1.180.0160.01013.71
7.1.170.0240.00613.73
7.1.160.0290.00313.62
7.1.150.0190.00913.53
7.1.140.0320.00813.72
7.1.130.0420.00713.68
7.1.120.0220.00613.37
7.1.110.0280.00713.55
7.1.100.0300.00213.61
7.1.90.0300.00513.62
7.1.80.0270.00213.38
7.1.70.0260.00713.25
7.1.60.0510.00531.26
7.1.50.0420.01031.30
7.1.40.0380.01131.72
7.1.30.0370.00631.37
7.1.20.0710.00231.57
7.1.10.0500.00513.51
7.1.00.0290.00713.59
7.0.310.0380.01013.31
7.0.300.0250.00113.36
7.0.290.0220.00613.25
7.0.270.0280.00713.10
7.0.260.0290.00013.52
7.0.250.0450.00413.60
7.0.240.0290.01113.22
7.0.230.0230.00713.31
7.0.220.0130.00413.07
7.0.210.0260.00313.23
7.0.200.0250.00613.38
7.0.190.0450.00613.22
7.0.180.0330.00013.61
7.0.170.0250.01213.41
7.0.160.0350.00313.10
7.0.150.0390.00413.26
7.0.140.0520.02213.27
7.0.130.0290.00713.50
7.0.120.0290.01113.24
7.0.110.0270.01413.41
7.0.100.0350.00013.32
7.0.90.0290.00313.43
7.0.80.0300.00913.46
7.0.70.0310.00313.57
7.0.60.0350.00613.41
7.0.50.0330.00013.52
7.0.40.0330.00313.20
7.0.30.0380.00013.05
7.0.20.0360.00613.35
7.0.10.0410.00413.51
7.0.00.0430.00313.43
5.6.300.0050.00713.90
5.6.290.0100.00313.96
5.6.280.0060.00614.30
5.6.270.0060.00614.02
5.6.260.0040.00714.14
5.6.250.0090.00514.14
5.6.240.0050.00514.17
5.6.230.0050.00514.21
5.6.220.0040.00714.01
5.6.210.0080.00314.04
5.6.200.0040.00814.22
5.6.190.0080.00413.91
5.6.180.0080.00314.36
5.6.170.0030.00714.15
5.6.160.0080.00514.20
5.6.150.0080.00413.92
5.6.140.0080.01714.13
5.6.130.0080.00813.97
5.6.120.0190.00414.00
5.6.110.0110.00513.99
5.6.100.0130.01313.73
5.6.90.0090.00914.17
5.6.80.0140.00713.99
5.6.70.0080.01214.11
5.6.60.0100.00513.85
5.6.50.0040.01314.25
5.6.40.0000.01513.89
5.6.30.0110.00614.09
5.6.20.0110.00514.05
5.6.10.0040.01614.00
5.6.00.0130.00713.79
5.5.380.0080.00010.80
5.5.370.0030.00611.14
5.5.360.0040.00410.95
5.5.350.0050.00210.67
5.5.340.0050.00310.99
5.5.330.0040.00410.71
5.5.320.0030.00710.77
5.5.310.0050.00810.89
5.5.300.0090.00511.00
5.5.290.0120.00010.84
5.5.280.0100.00710.84
5.5.270.0100.00710.85
5.5.260.0050.01011.13
5.5.250.0100.00510.74
5.5.240.0060.00610.97
5.5.230.0070.00510.88
5.5.220.0040.01210.54
5.5.210.0070.00710.88
5.5.200.0110.00010.79
5.5.190.0120.00010.80
5.5.180.0030.00910.93
5.5.160.0070.00710.91
5.5.150.0110.00310.73
5.5.140.0000.01410.94
5.5.130.0070.00710.54
5.5.120.0120.00210.85
5.5.110.0060.00610.99
5.5.100.0000.01210.71
5.5.90.0120.00310.86
5.5.80.0120.00010.97
5.5.70.0110.00210.99
5.5.60.0120.00010.52
5.5.50.0070.00410.86
5.5.40.0090.00310.81
5.5.30.0030.01010.88
5.5.20.0110.00010.81
5.5.10.0030.00710.80
5.5.00.0050.00510.82
5.4.450.0140.00310.87
5.4.440.0120.00710.95
5.4.430.0140.00210.77
5.4.420.0000.01210.93
5.4.410.0150.00011.01
5.4.400.0070.00410.85
5.4.390.0100.00210.75
5.4.380.0050.00510.54
5.4.370.0000.01010.43
5.4.360.0100.00310.41
5.4.350.0110.00010.85
5.4.340.0120.00010.71
5.4.320.0060.00610.52
5.4.310.0120.00510.93
5.4.300.0060.00610.97
5.4.290.0140.00010.95
5.4.280.0090.00310.77
5.4.270.0110.00010.68
5.4.260.0120.00210.88
5.4.250.0170.00011.05
5.4.240.0130.00310.57
5.4.230.0070.00411.11
5.4.220.0080.00411.01
5.4.210.0130.00010.77
5.4.200.0110.00010.52
5.4.190.0080.00210.75
5.4.180.0100.00210.60
5.4.170.0100.00310.77
5.4.160.0130.00310.46
5.4.150.0040.00810.64
5.4.140.0000.01110.79
5.4.130.0070.00710.59
5.4.120.0090.00610.65
5.4.110.0070.00410.46
5.4.100.0090.00710.86
5.4.90.0140.00310.90
5.4.80.0000.01111.04
5.4.70.0130.00010.85
5.4.60.0090.00610.59
5.4.50.0100.00310.71
5.4.40.0100.00310.69
5.4.30.0040.00410.79
5.4.20.0070.00010.83
5.4.10.0000.00710.58
5.4.00.0040.00410.74
5.3.290.0090.00310.22
5.3.280.0030.00610.20
5.3.270.0090.00310.31
5.3.260.0100.00610.21
5.3.250.0100.00310.04
5.3.240.0120.00010.04
5.3.230.0040.00610.17
5.3.220.0060.00610.25
5.3.210.0100.00510.19
5.3.200.0040.00710.09
5.3.190.0110.00010.20
5.3.180.0040.00710.43
5.3.170.0100.00410.38
5.3.160.0110.00010.28
5.3.150.0070.00710.39
5.3.140.0000.00710.21
5.3.130.0060.00010.37
5.3.120.0070.00010.28
5.3.110.0030.00910.29
5.3.100.0030.00910.21
5.3.90.0000.00710.43
5.3.80.0110.00010.15
5.3.70.0080.00010.16
5.3.60.0000.00710.18
5.3.50.0030.00910.07
5.3.40.0030.00310.02
5.3.30.0030.00310.13
5.3.20.0030.00710.10
5.3.10.0030.0079.92
5.3.00.0030.0039.99
5.2.170.0070.0039.38
5.2.160.0040.0049.30
5.2.150.0030.0039.30
5.2.140.0000.0109.27
5.2.130.0060.0009.32
5.2.120.0040.0049.26
5.2.110.0070.0049.26
5.2.100.0030.0039.26
5.2.90.0030.0039.26
5.2.80.0000.0099.26
5.2.70.0030.0039.26
5.2.60.0030.0039.26
5.2.50.0070.0009.28
5.2.40.0030.0039.26
5.2.30.0030.0039.26
5.2.20.0000.0059.26
5.2.10.0030.0039.26
5.2.00.0060.0009.26
5.1.60.0050.0009.26
5.1.50.0000.0059.26
5.1.40.0000.0069.26
5.1.30.0000.0069.26
5.1.20.0060.0039.26
5.1.10.0050.0049.26
5.1.00.0050.0009.26
5.0.50.0070.0009.26
5.0.40.0070.0009.26
5.0.30.0000.0059.26
5.0.20.0000.0069.26
5.0.10.0030.0069.26
5.0.00.0050.0009.26
4.4.90.0040.0009.26
4.4.80.0040.0009.26
4.4.70.0040.0009.26
4.4.60.0040.0009.26
4.4.50.0020.0029.26
4.4.40.0000.0049.26
4.4.30.0000.0049.26
4.4.20.0050.0009.26
4.4.10.0030.0039.26
4.4.00.0030.0039.26
4.3.110.0000.0049.26
4.3.100.0050.0049.26
4.3.90.0000.0059.26
4.3.80.0030.0039.26
4.3.70.0040.0049.26
4.3.60.0020.0059.26
4.3.50.0000.0079.26
4.3.40.0030.0039.26
4.3.30.0000.0089.26
4.3.20.0050.0009.26
4.3.10.0050.0009.26
4.3.00.0020.0029.26

preferences:
149.6 ms | 1394 KiB | 7 Q