3v4l.org

run code in 300+ PHP versions simultaneously
<?php // include 'conn.php'; // include_once 'tools/curl.php'; if ($_GET['url']) { $url=$_GET['url']; } else { $url="http://free.yoyokiss.com/vod/"; if ($_GET['w']) { $w=$_GET['w']; } else { $w="MP4"; } $html=file_get_contents($url); $html = iconv("gbk", "UTF-8", $html); $pat = "/<a(.*?)href=\"(.*?)\"(.*?)>(.*?".$w.")<\/a>/i"; preg_match_all($pat, $html, $m); $m=($m[2]); if ($_GET[sleep]){ for ($i=0;$i<sizeof($m);$i++) { $t=$m[$i]; echo $t; $md5file='/file/'.md5($t).'.MP4'; echo "<a href=http://$_SERVER[HTTP_HOST]$md5file>播放</a>"; echo " || "; echo "<a href=http://$_SERVER[HTTP_HOST]/tools/curl.php?url=$t>缓存到服务器</a>"; echo "<br>"; } }else if ($_GET[c]) { $ssh_name=date("His").".ssh"; $ssh_path="/usr/local/nginx/html/file/".$ssh_name; $f=fopen($ssh_path,"w"); fwrite ($f,"#!/bin/sh"); fwrite ($f,"\n"); for ($i=0;$i<sizeof($m);$i++) { $t=$m[$i]; if (!file_exists("/usr/local/nginx/html/file/".md5($t).".MP4")) { fwrite ($f,"wget '$t' -O /usr/local/nginx/html/file/".md5($t).".MP4"); fwrite ($f,"\n"); } } fwrite($f,"rm -f ".$ssh_path); fclose($f); exec("chmod 711 $ssh_path"); exec($ssh_path); echo "缓存已提交"; }else{ for ($i=0;$i<sizeof($m);$i++) { $t=$m[$i]; echo $t; $t1=urlencode($t); //转换url //$t2 = iconv("UTF-8", "GB2312", $t); echo "<a href='$t'>播放</a>"; echo " || "; echo "<a href=http://$_SERVER[HTTP_HOST]/tools/curl.php?url=$t>缓存到服务器</a>"; echo "<br>"; $r=mysql_query("select url from vod_zp where url='$t'",$con); if (mysql_num_rows($r)<1){ mysql_query("insert into vod_zp(url,urlen,createtime) values('$t','$t1',now())",$con); } } mysql_close($con); } ?>

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)
5.4.240.0070.03512.36
5.4.230.0060.03812.35
5.4.220.0080.03512.35
5.4.210.0050.03612.35
5.4.200.0060.03912.35
5.4.190.0070.04112.35
5.4.180.0070.03812.35
5.4.170.0080.03412.36
5.4.160.0060.03912.35
5.4.150.0040.04312.35
5.4.140.0080.03912.04
5.4.130.0050.03812.02
5.4.120.0040.03711.98
5.4.110.0050.04011.98
5.4.100.0060.03911.98
5.4.90.0060.04211.98
5.4.80.0060.04211.98
5.4.70.0060.03611.98
5.4.60.0060.03611.97
5.4.50.0060.03511.97
5.4.40.0040.03711.96
5.4.30.0070.03511.96
5.4.20.0050.03611.95
5.4.10.0050.03511.96
5.4.00.0060.03611.45
5.3.280.0070.03912.71
5.3.270.0050.04512.72
5.3.260.0050.04212.72
5.3.250.0080.03612.72
5.3.240.0080.03712.72
5.3.230.0050.04212.71
5.3.220.0080.04412.68
5.3.210.0060.04412.68
5.3.200.0070.03712.68
5.3.190.0050.04312.68
5.3.180.0080.04012.67
5.3.170.0050.04212.67
5.3.160.0050.03812.67
5.3.150.0060.04012.67
5.3.140.0070.03712.66
5.3.130.0070.04112.66
5.3.120.0040.04112.66
5.3.110.0090.03812.66
5.3.100.0070.04012.12
5.3.90.0060.04112.09
5.3.80.0090.04012.08
5.3.70.0080.03812.08
5.3.60.0040.04312.06
5.3.50.0070.03712.00
5.3.40.0050.04412.00
5.3.30.0110.04111.95
5.3.20.0080.04511.73
5.3.10.0060.04411.69
5.3.00.0060.03811.68

preferences:
140.76 ms | 1394 KiB | 7 Q