3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = ' <![CDATA[ Xxx-AV 22194 春奈 フルHD パイパンモデルの中出しレッスン個人撮影会で生性交 PART.2<br /> 春奈<br /> 公開日: 2015-09-20<br /> 再生時間: 00:50:44<br /> サイズ: 1990MB<br /> カテゴリ: AV女優<br /> ジャンル:<br /> キーワード: ドキュメント 美乳 スレンダー 美尻 美脚 その他コスプレ 生挿入 中出し ローター 電気あんま器 完全無修正<br /> <br /> <a href="http://www.imgbabes.com/8csqmlfikk7z/movie_main.jpg.html" target="_blank" class="externalLink" rel="nofollow"><img src="http://t1.imgbabes.com/i/00638/8csqmlfikk7z_t.jpg" class="bbCodeImage LbImage" alt="[&#x200B;IMG]" data-url="http://t1.imgbabes.com/i/00638/8csqmlfikk7z_t.jpg" /></a> <a href="http://www.imgbabes.com/rzcvbduyy3ah/xox0024_01.jpeg.html" target="_blank" class="externalLink" rel="nofollow"><img src="http://t1.imgbabes.com/i/00638/rzcvbduyy3ah_t.jpg" class="bbCodeImage LbImage" alt="[&#x200B;IMG]" data-url="http://t1.imgbabes.com/i/00638/rzcvbduyy3ah_t.jpg" /></a>...<br /> <br /> <a href="https://www.akiba-online.com/threads/hd-1-85g-xxx-av-22194-furuhd-paipanmoderunoshiressunde-part-2.1571604/" class="internalLink">[HD/1.85G] Xxx-AV 22194 春奈 フルHD パイパンモデルの中出しレッスン個人撮影会で生性交 PART.2</a> ]]> '; $content = $subject; $theurl = check_pic($subject);//--------------------------------------------------- //echo $theurl; //echo $theurl['url']; echo '<br />'; echo '<br />'; //echo $theurl['picurl']; //echo $theurl['picurl']; echo $theurl['content']; // myTest('http://c2.staticflickr.com/8/7334/8974569552_450a8e790a_n.jpg'); //$content = str_replace($matches[0][0],$url,$subject); //echo $content; function check_pic($subject) { $pattern = '/(?<=<a href=\")(.*?)(?=\" target)/'; //[^dailyjav] $result = preg_match_all( $pattern, $subject , $matches ); // echo $result; //匹配數 //echo '<br />'; //echo $matches[0][0]; if ($result) { $url= get_pic($matches[0][0]); // get_pic($matches[0][1]); // get_pic($matches[0][2]); //echo $matches[0][0].'hihi'; //global $content; $url2= get_pic($matches[0][1]); $url3= get_pic($matches[0][2]); // get_pic($matches[0][1]); $content = str_replace($matches[0][0],$url,$subject); $content = str_replace($matches[0][1],$url2,$content); $content = str_replace($matches[0][2],$url3,$content); // $content = str_replace($matches[0][2],$url,$subject); //echo $matches[0][0]; echo $url.' 1<br />'; echo $url2.' 2<br />'; echo $url3.' 3<br />'; //存圖 // grab_image($url,'image.jpg'); } //return $url; return array('picurl' => $url, 'content' => $content); } // function get_pic($the_pic_link) { $the_source = file_get_contents($the_pic_link); //$pattern = '/(http:\/\/imgdream.net\/images\/)(.*?)(.jpg)/'; if (strpos($the_pic_link,'imgdream') !== false) { $pattern = '/(http:\/\/(www\.)?imgdream\.net\/images\/)(.*?)(.jpg)/'; $matchme = 0; } elseif (strpos($the_pic_link,'img-365.com') !== false) { $pattern = '/(http:\/\/(www\.)?img-365\.com\/images\/)(.*?)(.jpg)/'; $matchme = 1; } elseif (strpos($the_pic_link,'daily-img.com') !== false) { $pattern = '/(http:\/\/(www\.)?daily-img.com\/images\/)(.*?)(.jpg)/'; $matchme = 1; } elseif (strpos($the_pic_link,'pixroute.com') !== false) { $pattern = '/(http:\/\/(www\.)?)(.*?)(\.jp(e)?g)(?=\")/'; $matchme = 1; } elseif (strpos($the_pic_link,'imgdream.net') !== false) { $pattern = '/((http:\/\/(www\.)?imgdream\.net\/)?images\/)(.*?)(.jp(e)?g)(?=\")/'; $matchme = 0; } elseif (strpos($the_pic_link,'imgserve.net') !== false) { $pattern = '/(http:\/\/(www\.)?)(.*?)(\.jpeg)/'; $matchme = 0; } elseif (strpos($the_pic_link,'imgmega.com') !== false) { $pattern = '/(http:\/\/(www\.)?)(.*?)(.jpg)(?=\")/'; $para = array( 'op' => urlencode('view'), // 'id' => urlencode('r1a5kgl05pwu'), //----------------------ID代表一張圖! 'pre' => urlencode('1'), 'next' => urlencode('Continue to image'), ); $the_source = pic_post($the_pic_link,$para); $matchme = 0; } elseif (strpos($the_pic_link,'imgbabes.com') !== false) { $pattern = '/(http:\/\/(t1\.)?)(.*?)(.jp(e)?g)(?=\")/'; $matchme = 0; $url=$the_pic_link; $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_HEADER,false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_COOKIE, "denial=93a7a7e8b5af9f19a6df5e9850f8a64a;"); //Cookie: aff=7949; _ga=GA1.2.1147186056.1442133451; denial=93a7a7e8b5af9f19a6df5e9850f8a64a // curl_setopt($ch, CURLOPT_COOKIEJAR, 'tmpfile.txt'); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); $the_source = $temp=curl_exec($ch); //echo $the_source; //htmlspecialchars($the_source); curl_close($ch); //------------------ //affiliate_redirect(); //---------------- } elseif (strpos($the_pic_link,'imageteam.org') !== false) { $pattern = '/(http:\/\/(www\.)?)(.*?)(.jpeg)/'; $matchme = 0; } elseif (strpos($the_pic_link,'erimge.com') !== false) { $pattern = '/(http:\/\/(www\.)?erimge\.com\/)(.*?)(.jpg)/'; $para = array( 'imgContinue' => urlencode('Continue to image'), ); $the_source = pic_post($the_pic_link,$para); $matchme = 0; } elseif (strpos($the_pic_link,'imgbb.net') !== false) { $pattern = '/(http:\/\/(www\.)?)(.*?)(.jp(e)?g)/'; $para = array( 'imgContinue' => urlencode('Continue to image'), ); //op=view&id=2vnhpseirols&pre=1&next=Continue+to+image... //imgContinue=Continue+to+image+...+ $the_source = pic_post($the_pic_link,$para); $matchme = 0; } else { $pattern = '/(http:\/\/(www\.)?)(.*?)(.jpg)/'; $matchme = 0; } $success = preg_match_all($pattern, $the_source, $match); if ($success) { // echo '<img src="'.$match[0][$matchme].'" border=\"0\" alt=\"\" \/>'; // echo '<br />'; $url=$match[0][$matchme]; //echo '<br />'; //echo $url.'<br/>'; // echo '<br />'.$url.'hihi'; } return $url; } //function get pic function affiliate_redirect() { // it's possible to use 'if( !empty( $_GET['affid']) )' if( isset($_GET['cookie']) && '' != $_GET['cookie'] ) { if( empty($_COOKIE['cookie']) ) setcookie('denial', 'denial=93a7a7e8b5af9f19a6df5e9850f8a64a', time()+2592000, '/'); header('Location: '.$url); exit; } } function myTest($url) { $image_url = $url; $ch = curl_init(); $timeout = 0; curl_setopt ($ch, CURLOPT_URL, $image_url); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); // Getting binary data curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1); $image = curl_exec($ch); curl_close($ch); // output to browser header("Content-type: image/jpeg"); print $image; } //------------------------------------------------------------------------pic_post() function pic_post($theposturl,$para) { $url = $theposturl; $fields = $para; $fields_string=''; //url-ify the data for the POST foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string, '&'); //open connection //$ch = curl_init(); $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POST, count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //execute post $result = curl_exec($ch); //close connection curl_close($ch); return $result; } //------------------------------------------------------------------------pic_post() ?>

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.3.120.0000.01715.38
7.3.110.0100.00715.42
7.3.100.0030.01315.27
7.3.90.0060.00915.05
7.3.80.0000.01215.66
7.3.70.0040.00715.01
7.3.60.0030.00615.39
7.3.50.0040.00815.01
7.3.40.0040.01115.36
7.3.30.0090.00615.19
7.3.20.0120.00317.17
7.3.10.0080.00816.71
7.3.00.0040.00917.12
7.2.240.0080.00815.39
7.2.230.0060.01015.66
7.2.220.0060.01015.38
7.2.210.0060.00915.19
7.2.200.0060.00915.26
7.2.190.0060.00915.32
7.2.180.0070.01115.46
7.2.170.0000.01815.41
7.2.160.0090.00615.59
7.2.150.0070.01117.36
7.2.140.0040.00817.29
7.2.130.0070.00717.26
7.2.120.0040.01217.05
7.2.110.0070.01017.22
7.2.100.0140.00317.47
7.2.90.0110.00017.46
7.2.80.0090.00617.43
7.2.70.0060.01017.41
7.2.60.0090.00717.19
7.2.50.0040.00717.37
7.2.40.0060.01017.35
7.2.30.0100.00717.05
7.2.20.0030.01017.46
7.2.10.0000.01517.43
7.2.00.0090.00918.67
7.1.330.0030.01416.03
7.1.320.0040.01116.20
7.1.310.0060.00916.17
7.1.300.0090.00616.21
7.1.290.0100.00316.21
7.1.280.0100.00316.20
7.1.270.0070.01116.19
7.1.260.0040.01116.18
7.1.250.0070.00716.35
7.1.200.0030.01015.86
7.1.100.0040.00818.56
7.1.70.0050.00517.77
7.1.60.0060.01919.13
7.1.50.0070.01817.62
7.1.00.0030.09322.60
7.0.200.0090.00317.38
7.0.80.0330.08020.50
7.0.70.0170.05320.40
7.0.60.0400.09720.38
7.0.50.0300.09020.75
7.0.40.0130.08020.54
7.0.30.0030.09720.43
7.0.20.0100.04320.41
7.0.10.0030.07320.54
7.0.00.0030.06020.57
5.6.280.0100.07021.61
5.6.230.0070.09321.11
5.6.220.0130.07720.98
5.6.210.0170.07321.20
5.6.200.0200.06721.43
5.6.190.0100.07721.64
5.6.180.0170.04721.30
5.6.170.0130.07321.30
5.6.160.0000.04721.41
5.6.150.0100.07321.50
5.6.140.0130.08021.54
5.6.130.0100.09321.27
5.6.120.0130.08021.57
5.6.110.0030.08721.51
5.6.100.0030.06721.34
5.6.90.0130.07721.46
5.6.80.0170.07320.89
5.6.70.0030.04721.01
5.6.60.0100.07720.72
5.6.50.0130.04020.90
5.6.40.0030.07720.99
5.6.30.0070.08020.75
5.6.20.0100.08720.89
5.6.10.0070.05720.78
5.6.00.0200.05020.97
5.5.370.0100.08320.94
5.5.360.0070.08321.02
5.5.350.0130.08020.85
5.5.340.0000.07721.35
5.5.330.0030.08321.34
5.5.320.0170.07321.28
5.5.310.0100.04321.38
5.5.300.0100.07721.23
5.5.290.0100.08021.30
5.5.280.0100.07021.30
5.5.270.0030.06721.01
5.5.260.0100.08021.31
5.5.250.0100.06721.14
5.5.240.0030.04720.60
5.5.230.0130.08020.40
5.5.220.0070.08720.57
5.5.210.0170.07320.70
5.5.200.0070.07720.66
5.5.190.0070.07320.57
5.5.180.0100.07720.63
5.5.160.0200.06020.64
5.5.150.0100.07020.70
5.5.140.0100.06720.57
5.5.130.0100.07320.44
5.5.120.0130.06020.42
5.5.110.0130.07320.73
5.5.100.0100.04720.40
5.5.90.0070.04320.34
5.5.80.0100.05020.49
5.5.70.0130.06320.48
5.5.60.0100.07020.48
5.5.50.0070.04020.57
5.5.40.0070.04720.45
5.5.30.0030.08020.45
5.5.20.0030.06320.38
5.5.10.0070.08020.54
5.5.00.0170.05720.54
5.4.450.0100.07019.72
5.4.440.0070.08019.73
5.4.430.0030.04019.79
5.4.420.0100.04719.90
5.4.410.0170.06719.51
5.4.400.0070.04319.37
5.4.390.0100.08019.57
5.4.380.0130.03719.60
5.4.370.0030.08719.50
5.4.360.0030.08019.30
5.4.350.0070.04319.33
5.4.340.0200.04719.40
5.4.320.0070.08019.57
5.4.310.0100.06019.30
5.4.300.0100.04719.26
5.4.290.0030.04019.27
5.4.280.0030.04719.35
5.4.270.0000.06019.35
5.4.260.0070.07719.47
5.4.250.0070.04319.34
5.4.240.0100.06319.16
5.4.230.0100.07319.57
5.4.220.0100.06719.38
5.4.210.0070.07019.48
5.4.200.0130.04719.38
5.4.190.0070.06719.37
5.4.180.0070.06719.43
5.4.170.0070.03719.25
5.4.160.0070.07319.59
5.4.150.0030.07019.42
5.4.140.0070.07716.73
5.4.130.0130.06716.84
5.4.120.0070.07016.81
5.4.110.0130.07016.82
5.4.100.0070.06316.62
5.4.90.0100.06316.70
5.4.80.0000.07716.82
5.4.70.0100.07016.77
5.4.60.0170.04016.81
5.4.50.0100.06716.77
5.4.40.0100.07016.80
5.4.30.0230.06716.66
5.4.20.0070.07016.77
5.4.10.0200.06016.77
5.4.00.0030.06316.17

preferences:
34.84 ms | 400 KiB | 5 Q