3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); ini_set('user_agent', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36'); header('Content-Type: text/html; charset=utf-8'); header('X-XSS-Protection: 1; mode=block'); ?> <!DOCTYPE html> <html> <head> <meta charset='utf-8'> <title>QQ无损音乐地址获取</title> <script type='text/javascript' src='jquery.min.js'></script> <script type='text/javascript' src='noreferrer.js'></script> <style> .CSSTableGenerator { margin: 0px; padding: 0px; width: 100%; box-shadow: 10px 10px 5px #888888; border: 1px solid #000000; -moz-border-radius-bottomleft: 0px; -webkit-border-bottom-left-radius: 0px; border-bottom-left-radius: 0px; -moz-border-radius-bottomright: 0px; -webkit-border-bottom-right-radius: 0px; border-bottom-right-radius: 0px; -moz-border-radius-topright: 0px; -webkit-border-top-right-radius: 0px; border-top-right-radius: 0px; -moz-border-radius-topleft: 0px; -webkit-border-top-left-radius: 0px; border-top-left-radius: 0px; } .CSSTableGenerator table { width: 100%; height: 100%; margin: 0px; padding: 0px; } .CSSTableGenerator tr:last-child td:last-child { -moz-border-radius-bottomright: 0px; -webkit-border-bottom-right-radius: 0px; border-bottom-right-radius: 0px; } .CSSTableGenerator table tr:first-child td:first-child { -moz-border-radius-topleft: 0px; -webkit-border-top-left-radius: 0px; border-top-left-radius: 0px; } .CSSTableGenerator table tr:first-child td:last-child { -moz-border-radius-topright: 0px; -webkit-border-top-right-radius: 0px; border-top-right-radius: 0px; } .CSSTableGenerator tr:last-child td:first-child { -moz-border-radius-bottomleft: 0px; -webkit-border-bottom-left-radius: 0px; border-bottom-left-radius: 0px; } .CSSTableGenerator tr:hover td { } .CSSTableGenerator tr:nth-child(odd) { background-color: #aad4ff; } .CSSTableGenerator tr:nth-child(even) { background-color: #ffffff; } .CSSTableGenerator td { vertical-align: middle; border: 1px solid #000000; border-width: 0px 1px 1px 0px; text-align: left; padding: 7px; font-size: 15px; font-family: Arial; font-weight: normal; color: #000000; } .CSSTableGenerator tr:last-child td { border-width: 0px 1px 0px 0px; } .CSSTableGenerator tr td:last-child { border-width: 0px 0px 1px 0px; } .CSSTableGenerator tr:last-child td:last-child { border-width: 0px 0px 0px 0px; } .CSSTableGenerator tr:first-child td { background: -o-linear-gradient(bottom, #005fbf 5%, #003f7f 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #005fbf), color-stop(1, #003f7f)); background: -moz-linear-gradient(center top, #005fbf 5%, #003f7f 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#005fbf", endColorstr="#003f7f"); background: -o-linear-gradient(top, #005fbf, 003 f7f); background-color: #005fbf; border: 0px solid #000000; text-align: center; border-width: 0px 0px 1px 1px; font-size: 14px; font-family: Arial; font-weight: bold; color: #ffffff; } .CSSTableGenerator tr:first-child:hover td { background: -o-linear-gradient(bottom, #005fbf 5%, #003f7f 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #005fbf), color-stop(1, #003f7f)); background: -moz-linear-gradient(center top, #005fbf 5%, #003f7f 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#005fbf", endColorstr="#003f7f"); background: -o-linear-gradient(top, #005fbf, 003 f7f); background-color: #005fbf; } .CSSTableGenerator tr:first-child td:first-child { border-width: 0px 0px 1px 0px; } .CSSTableGenerator tr:first-child td:last-child { border-width: 0px 0px 1px 1px; } </style> </head> <body> <form name="input" action="qqyinyue.php" method="get"> 音乐名/歌手名/专辑名: <input type="text" name="key" autofocus> <input type="submit" value="Submit"> </form> <hr/> <?php if (isset($_GET["sid"])) { if (is_numeric($_GET["sid"])) { $sid = $_GET["sid"]; if (strlen($sid) < 10) { echo '<b>歌曲ID: </b>' . $sid . '<br />'; $data = file_get_contents('http://s.plcloud.music.qq.com/fcgi-bin/fcg_list_songinfo.fcg?idlist=' . $sid . '&callback=jsonCallback&url=1'); $details = explode('|', $data); echo '<b>歌曲名称: </b>' . $details[1] . '<br />'; echo '<b>歌手名称: </b>' . $details[3] . '<br />'; echo '<b>专辑名词: </b>' . $details[5] . '<br /><br />'; $data = preg_replace('/(.)*http:\/\//', 'http://', $data); $data = preg_replace('/' . $sid . '.m4a(.)*$/', '', $data); $sid = intval($sid); $flac = $data . strval($sid + 70000000) . '.flac'; $ape = $data . strval($sid + 80000000) . '.ape'; $mp3sd = $data . strval($sid + 30000000) . '.mp3'; $mp3hd = $data . strval($sid) . '.mp3'; echo "<h2>注意,并不是所有歌曲都提供无损格式,FLAC和APE地址只是理论上的,如果无法下载就是没有.</h2>"; echo "<h2>注意,请使用基于Webkit核心的浏览器,例如 谷歌Chrome浏览器.</h2>"; echo '<a target="_blank" rel="noreferrer" href="' . $flac . '">FLAC 格式</a><br /><br />'; echo '<a target="_blank" rel="noreferrer" href="' . $ape . '">APE 格式</a><br /><br />'; echo '<a target="_blank" rel="noreferrer" href="' . $mp3sd . '">低质量(128Kbps) MP3 格式</a><br /><br />'; echo '<a target="_blank" rel="noreferrer" href="' . $mp3hd . '">高质量(320Kbps) MP3 格式</a><br /><br />'; } else { echo "sid 长度不合法<br /><br />"; } } else { echo "sid 内容不合法<br />"; } } elseif (isset($_GET["key"])) { $url = 'http://cgi.music.soso.com/fcgi-bin/fcg_search_xmldata.q?source=10&w=' . iconv('UTF-8', 'GB2312', $_GET['key']) . '&type=qry_song&out=json&p=1&perpage=15&notice=0&needNewCode=0&inCharset=GB2312&outCharset=GB2312&format=jsonp&platform=musicbox&jsonpCallback=searchJsonCallback'; $data = file_get_contents($url); $values = array_values(preg_grep('/(songname|singername|albumname|musicid):/', explode(',', $data))); $song = array(); $sid = array(); $singer = array(); $album = array(); if (count($values) % 4 === 0) { for ($i = 0; $i < count($values) - 4; $i += 4) { array_push($sid, substr($values[$i], 8)); array_push($song, substr($values[$i + 1], 9)); array_push($singer, substr($values[$i + 2], 11)); array_push($album, substr($values[$i + 3], 10)); } unset($values); ?> <div class="CSSTableGenerator"> <table> <tr> <td> 歌名 </td> <td> 歌手 </td> <td> 专辑 </td> <td> 下载链接 </td> </tr> <?php for ($i = 0; $i < count($sid); $i++) { ?> <tr> <td><?= iconv('GB2312', 'UTF-8', $song[$i]) ?></td> <td><?= iconv('GB2312', 'UTF-8', $singer[$i]) ?></td> <td><?= iconv('GB2312', 'UTF-8', $album[$i]) ?></td> <td><a href="./qqyinyue.php?sid=<?= $sid[$i] ?>" target='_blank'>点击打开下载页</a></td> </tr> <?PHP }?> </table> </div> <?php } } ?> </body> </html>

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.0100.01018.29
8.3.50.0100.01022.12
8.3.40.0140.00418.96
8.3.30.0080.00619.22
8.3.20.0000.00720.34
8.3.10.0040.00421.81
8.3.00.0030.00619.12
8.2.180.0070.01118.32
8.2.170.0000.01522.96
8.2.160.0130.00020.66
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00819.16
8.2.110.0060.00320.53
8.2.100.0120.00017.85
8.2.90.0000.00818.41
8.2.80.0030.00617.97
8.2.70.0070.00317.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0030.00519.74
8.2.30.0000.00818.05
8.2.20.0040.00417.68
8.2.10.0040.00418.10
8.2.00.0050.00217.80
8.1.280.0180.00425.92
8.1.270.0000.00818.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00322.23
8.1.230.0090.00321.11
8.1.220.0000.00817.74
8.1.210.0060.00319.14
8.1.200.0070.00317.48
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00420.29
8.1.160.0020.00522.09
8.1.150.0040.00418.82
8.1.140.0040.00417.55
8.1.130.0030.00617.93
8.1.120.0000.00817.42
8.1.110.0030.00517.56
8.1.100.0080.00017.53
8.1.90.0030.00317.52
8.1.80.0000.00817.45
8.1.70.0000.00717.49
8.1.60.0000.00917.53
8.1.50.0050.00317.58
8.1.40.0030.00517.58
8.1.30.0040.00417.62
8.1.20.0000.00817.59
8.1.10.0040.00417.59
8.1.00.0040.00417.41
8.0.300.0070.00020.29
8.0.290.0020.00516.75
8.0.280.0020.00518.48
8.0.270.0000.00717.25
8.0.260.0060.00017.27
8.0.250.0000.00716.95
8.0.240.0040.00417.01
8.0.230.0040.00417.03
8.0.220.0030.00316.85
8.0.210.0030.00316.95
8.0.200.0030.00316.99
8.0.190.0040.00416.91
8.0.180.0040.00416.92
8.0.170.0000.00816.98
8.0.160.0050.00317.06
8.0.150.0000.00716.82
8.0.140.0000.00816.80
8.0.130.0040.00413.34
8.0.120.0000.00816.93
8.0.110.0040.00416.84
8.0.100.0020.00516.91
8.0.90.0000.00716.84
8.0.80.0060.01216.95
8.0.70.0080.00016.82
8.0.60.0040.00416.80
8.0.50.0030.00516.75
8.0.30.0070.00917.28
8.0.20.0120.01017.40
8.0.10.0070.00016.88
8.0.00.0100.01116.84
7.4.330.0000.00515.03
7.4.320.0000.00716.68
7.4.300.0070.00016.63
7.4.290.0040.00416.65
7.4.280.0030.00616.54
7.4.270.0030.00316.62
7.4.260.0000.00716.46
7.4.250.0080.00016.42
7.4.240.0040.00416.53
7.4.230.0070.00016.72
7.4.220.0160.00616.73
7.4.210.0040.01716.45
7.4.200.0040.00416.64
7.4.160.0070.01016.53
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0090.01216.51
7.4.120.0050.01216.60
7.4.110.0040.01216.59
7.4.100.0100.00716.66
7.4.90.0070.01016.44
7.4.80.0100.00719.39
7.4.70.0090.01216.39
7.4.60.0110.01016.52
7.4.50.0070.00816.46
7.4.40.0110.01116.49
7.4.30.0110.01716.41
7.4.20.0080.01516.53
7.4.10.0100.01616.10
7.4.00.0140.00515.69
7.3.330.0000.00513.15
7.3.320.0120.00013.18
7.3.310.0070.00016.24
7.3.300.0000.00716.17
7.3.290.0070.00916.34
7.3.280.0060.01116.31
7.3.270.0120.00617.40
7.3.260.0060.01116.36
7.3.250.0130.00516.56
7.3.240.0110.00716.56
7.3.230.0100.01316.50
7.3.210.0120.00316.30
7.3.200.0060.01716.28
7.3.190.0060.01516.52
7.3.180.0150.00616.51
7.3.170.0120.01016.54
7.3.160.0110.01016.43
7.3.150.0060.01816.36
7.3.140.0100.01316.28
7.3.130.0150.00916.46
7.3.120.0110.01416.46
7.3.110.0030.01816.32
7.3.100.0160.01016.29
7.3.90.0120.01016.46
7.3.80.0180.00616.32
7.3.70.0120.01216.34
7.3.60.0160.00416.25
7.3.50.0080.01116.41
7.3.40.0090.00916.25
7.3.30.0080.01216.40
7.3.20.0040.01916.42
7.3.10.0180.00316.56
7.3.00.0070.01216.41
7.2.330.0040.01416.71
7.2.320.0160.00016.77
7.2.310.0120.00916.57
7.2.300.0090.01216.72
7.2.290.0090.01016.60
7.2.280.0150.00816.26
7.2.270.0120.01216.50
7.2.260.0180.00916.61
7.2.250.0220.00616.45
7.2.240.0130.00816.69
7.2.230.0140.01016.73
7.2.220.0130.01116.38
7.2.210.0080.01616.52
7.2.200.0120.00916.55
7.2.190.0080.01316.41
7.2.180.0100.01416.55
7.2.170.0110.00816.36
7.2.160.0120.01016.51
7.2.150.0600.00816.73
7.2.140.0150.01116.62
7.2.130.0090.00816.81
7.2.120.0100.01616.73
7.2.110.0090.01016.59
7.2.100.0080.00816.71
7.2.90.0020.01616.76
7.2.80.0120.01016.66
7.2.70.0060.01216.69
7.2.60.0110.00516.81
7.2.50.0170.00816.56
7.2.40.0130.00616.80
7.2.30.0120.01016.76
7.2.20.0120.00616.74
7.2.10.0030.01416.63
7.2.00.0090.00817.54
7.1.330.0040.01915.43
7.1.320.0180.01015.52
7.1.310.0160.00615.44
7.1.300.0110.00715.46
7.1.290.0090.01315.48
7.1.280.0070.01015.48
7.1.270.0100.01015.55
7.1.260.0040.01415.41
7.1.250.0090.00915.50
7.1.240.0050.01415.61
7.1.230.0080.00915.60
7.1.220.0060.01115.57
7.1.210.0060.00815.53
7.1.200.0060.00715.56
7.1.190.0070.01015.40
7.1.180.0120.00615.42
7.1.170.0070.01115.38
7.1.160.0100.00715.49
7.1.150.0140.00515.43
7.1.140.0120.00415.60
7.1.130.0060.01315.40
7.1.120.0080.00715.57
7.1.110.0100.00715.36
7.1.100.0060.00716.25
7.1.90.0090.00715.65
7.1.80.0110.00815.42
7.1.70.0080.00815.94
7.1.60.0210.01116.87
7.1.50.0050.01415.85
7.1.40.0120.00815.44
7.1.30.0150.00715.35
7.1.20.0130.00515.47
7.1.10.0100.00715.53
7.1.00.0070.03017.67
7.0.330.0060.00715.33
7.0.320.0080.01015.12
7.0.310.0030.01215.13
7.0.300.0110.00815.15
7.0.290.0220.00615.18
7.0.280.0080.00814.97
7.0.270.0090.00815.04
7.0.260.0050.01215.19
7.0.250.0100.00415.39
7.0.240.0090.00715.29
7.0.230.0090.00915.26
7.0.220.0060.01315.32
7.0.210.0080.00915.08
7.0.200.0170.00814.77
7.0.190.0120.00515.18
7.0.180.0070.01215.13
7.0.170.0060.00815.14
7.0.160.0120.00315.11
7.0.150.0060.01215.07
7.0.140.0050.03117.54
7.0.130.0060.01215.12
7.0.120.0090.00615.09
7.0.110.0070.01215.21
7.0.100.0070.00915.11
7.0.90.0100.01015.05
7.0.80.0100.00715.06
7.0.70.0060.00615.09
7.0.60.0130.02216.81
7.0.50.0670.02116.03
7.0.40.0090.02415.29
7.0.30.0040.03015.38
7.0.20.0190.02915.92
7.0.10.0050.03015.36
7.0.00.0090.03115.24
5.6.400.0100.01516.05
5.6.390.0210.00415.83
5.6.380.0080.01115.19
5.6.370.0050.01015.10
5.6.360.0070.01315.08
5.6.350.0120.00715.12
5.6.340.0050.01315.26
5.6.330.0070.01214.90
5.6.320.0060.01315.02
5.6.310.0120.00615.23
5.6.300.0070.01015.01
5.6.290.0090.01214.96
5.6.280.0050.03216.97
5.6.270.0060.01515.05
5.6.260.0000.01814.91
5.6.250.0070.01314.81
5.6.240.0120.00614.97
5.6.230.0110.00714.95
5.6.220.0090.00915.10
5.6.210.0130.03216.79
5.6.200.0160.02316.12
5.6.190.0080.03015.96
5.6.180.0130.03016.01
5.6.170.0080.02316.02
5.6.160.0080.02515.97
5.6.150.0140.02216.00
5.6.140.0090.03516.13
5.6.130.0070.02116.05
5.6.120.0080.03516.13
5.6.110.0110.03016.06
5.6.100.0100.03116.20
5.6.90.0090.02216.03
5.6.80.0070.01915.96
5.6.70.0080.02015.98
5.6.60.0090.02515.89
5.6.50.0090.02115.90
5.6.40.0150.02216.01
5.6.30.0080.02515.81
5.6.20.0090.03415.78
5.6.10.0080.02315.84
5.6.00.0180.02215.86
5.5.380.0100.00713.25
5.5.370.0090.00613.20
5.5.360.0080.01013.50
5.5.350.0140.03415.57
5.5.340.0080.03314.71
5.5.330.0080.03414.79
5.5.320.0130.02614.74
5.5.310.0060.03514.72
5.5.300.0080.02314.91
5.5.290.0080.02814.88
5.5.280.0130.02714.71
5.5.270.0090.03014.81
5.5.260.0120.02214.80
5.5.250.0040.03614.74
5.5.240.0120.03114.73
5.5.230.0060.03314.74
5.5.220.0080.02814.68
5.5.210.0110.02614.68
5.5.200.0120.03014.43
5.5.190.0140.01814.46
5.5.180.0100.03014.54
5.5.170.0120.00913.41
5.5.160.0100.02014.69
5.5.150.0080.01914.62
5.5.140.0120.01414.67
5.5.130.0140.01614.59
5.5.120.0140.02814.70
5.5.110.0130.02114.50
5.5.100.0090.03114.57
5.5.90.0150.01514.54
5.5.80.0050.02414.77
5.5.70.0100.03014.62
5.5.60.0090.01814.62
5.5.50.0090.02914.56
5.5.40.0040.02114.69
5.5.30.0110.03114.41
5.5.20.0060.01914.40
5.5.10.0050.02114.46
5.5.00.0130.02814.40
5.4.450.0090.01714.18
5.4.440.0120.02614.23
5.4.430.0100.02314.18
5.4.420.0080.01614.26
5.4.410.0040.03014.15
5.4.400.0070.03114.18
5.4.390.0070.03014.16
5.4.380.0070.02914.07
5.4.370.0070.01814.03
5.4.360.0100.01714.13
5.4.350.0090.01714.21
5.4.340.0110.02814.01
5.4.330.0090.01111.71
5.4.320.0170.02814.02
5.4.310.0100.01413.97
5.4.300.0110.02114.15
5.4.290.0120.02414.09
5.4.280.0070.03114.01
5.4.270.0120.02914.13
5.4.260.0070.03214.00
5.4.250.0090.01914.06
5.4.240.0050.03514.04
5.4.230.0110.02514.08
5.4.220.0080.03013.99
5.4.210.0080.02613.94
5.4.200.0050.02013.98
5.4.190.0090.01614.04
5.4.180.0080.01613.91
5.4.170.0080.02713.99
5.4.160.0050.03114.10
5.4.150.0080.02814.05
5.4.140.0080.02013.29
5.4.130.0060.02413.15
5.4.120.0060.02813.21
5.4.110.0070.01613.24
5.4.100.0020.02013.23
5.4.90.0060.02113.21
5.4.80.0060.03113.12
5.4.70.0100.02513.18
5.4.60.0070.02713.27
5.4.50.0070.01613.22
5.4.40.0010.02513.27
5.4.30.0080.02413.29
5.4.20.0040.02313.24
5.4.10.0050.03113.15
5.4.00.0080.02513.08
5.3.290.0120.02812.77
5.3.280.0110.01712.62
5.3.270.0110.02912.73
5.3.260.0080.03212.71
5.3.250.0050.03112.71
5.3.240.0040.02812.55
5.3.230.0050.02012.65
5.3.220.0040.01812.51
5.3.210.0060.01712.58
5.3.200.0070.01512.57
5.3.190.0070.02712.60
5.3.180.0010.02312.66
5.3.170.0070.02612.75
5.3.160.0070.02512.70
5.3.150.0050.02712.68
5.3.140.0030.03212.61
5.3.130.0040.01712.62
5.3.120.0100.02512.68
5.3.110.0060.02112.65
5.3.100.0050.02712.52
5.3.90.0070.02812.37
5.3.80.0050.01812.30
5.3.70.0060.02812.37
5.3.60.0040.02112.40
5.3.50.0050.02012.36
5.3.40.0060.02312.31
5.3.30.0050.01712.30
5.3.20.0040.03112.22
5.3.10.0080.02512.17
5.3.00.0070.02212.21
5.2.170.0060.02211.14
5.2.160.0020.02411.13
5.2.150.0070.02311.13
5.2.140.0040.02511.12
5.2.130.0040.01711.12
5.2.120.0050.02211.04
5.2.110.0060.01311.18
5.2.100.0040.01811.13
5.2.90.0020.01511.07
5.2.80.0030.02311.08
5.2.70.0020.01611.03
5.2.60.0030.02311.09
5.2.50.0040.02511.08
5.2.40.0050.01411.08
5.2.30.0030.02411.04
5.2.20.0040.01610.97
5.2.10.0050.01711.01
5.2.00.0050.01510.97
5.1.60.0050.01410.67
5.1.50.0010.02010.79
5.1.40.0050.01210.71
5.1.30.0060.01610.82
5.1.20.0070.02110.86
5.1.10.0060.02110.76
5.1.00.0030.02010.81
5.0.50.0040.02010.22
5.0.40.0030.01010.19
5.0.30.0030.02610.14
5.0.20.0010.01110.15
5.0.10.0050.01310.09
5.0.00.0010.02010.13
4.4.90.0010.00910.09
4.4.80.0020.01510.09
4.4.70.0050.01210.09
4.4.60.0010.01510.09
4.4.50.0010.01310.09
4.4.40.0040.00810.09
4.4.30.0040.00910.09
4.4.20.0020.01410.09
4.4.10.0030.01410.09
4.4.00.0030.01210.09
4.3.110.0020.00810.09
4.3.100.0030.00610.09
4.3.90.0060.01110.09
4.3.80.0010.01210.09
4.3.70.0060.01110.09
4.3.60.0030.01510.09
4.3.50.0020.01610.09
4.3.40.0010.02010.09
4.3.30.0020.01510.09
4.3.20.0020.01010.09
4.3.10.0020.00810.09
4.3.00.0010.00910.09

preferences:
51.86 ms | 401 KiB | 5 Q