@ 2018-10-29T06:44:36Z <?php
class EmbedRandomize {
var $embed,$listapi;
public function dataAPI(){
if(!empty($this->listapi)){
$api = explode(',',$this->listapi);
return $api;
}
return [];
}
public function isContains($match,$string){
if(strpos($string,$match) !== false){
return true;
}
return false;
}
public function isInternalEmbed(){
$api = $this->dataAPI();
if(!empty($api)){
foreach($api as $value){
$plugins = str_replace('/api','/plugins',trim($value));
if($this->isContains($plugins,$this->embed)){
return true;
}
}
}
return false;
}
public function randomize(){
$api = $this->dataAPI();
$numserver = mt_rand(0,(count($api)-1));
$data = str_replace('/api','/plugins',trim($api[$numserver]));
$list = array();
foreach($this->dataAPI() as $value){
$list[] = str_replace('/api','/plugins',trim($value));
}
return str_replace($list,$data,$this->embed);
}
public function modify(){
if($this->isInternalEmbed()){
return $this->randomize();
}
return $this->embed;
}
}
$apiconfig = 'https://server.omovv.com/api, https://node1.omovv.com/api';
$embed = '<iframe src="https://server.omovv.com/plugins/openload/embed.php?id=2GqeLBWdH61NiJuXNrfChmCoM8s7InY0nh9y7d2g2AoXhoRwE4hbyIJxvAtLdbH70zNq1VAHDLphboTenncx68hn7mcN7FODrBWGSuix" frameborder="0" scrolling="no" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>';
$embed2 = '<iframe src="https://oload.stream/plugins/openload/embed.php?id=2GqeLBWdH61NiJuXNrfChmCoM8s7InY0nh9y7d2g2AoXhoRwE4hbyIJxvAtLdbH70zNq1VAHDLphboTenncx68hn7mcN7FODrBWGSuix" frameborder="0" scrolling="no" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>';
$video = new EmbedRandomize();
$video->listapi = $apiconfig;
$video->embed = $embed;
echo $video->modify();
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
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).
Version System time (s) User time (s) Memory (MiB) 7.2.11 0.020 0.013 14.64 7.2.10 0.022 0.010 15.00 7.2.9 0.024 0.007 14.88 7.2.8 0.013 0.010 14.72 7.2.7 0.018 0.006 15.11 7.2.6 0.027 0.006 15.28 7.2.5 0.024 0.003 15.24 7.2.4 0.040 0.009 14.94 7.2.3 0.022 0.003 14.99 7.2.2 0.038 0.007 15.11 7.2.1 0.022 0.012 15.15 7.2.0 0.027 0.006 14.94 7.1.23 0.016 0.010 13.94 7.1.22 0.018 0.009 13.95 7.1.21 0.024 0.007 13.93 7.1.20 0.012 0.009 13.99 7.1.19 0.016 0.006 14.00 7.1.18 0.026 0.006 13.85 7.1.17 0.027 0.007 13.73 7.1.16 0.020 0.010 13.79 7.1.15 0.019 0.006 13.89 7.1.14 0.026 0.013 13.95 7.1.13 0.022 0.009 14.11 7.1.12 0.020 0.007 13.80 7.1.11 0.011 0.011 13.89 7.1.10 0.017 0.007 13.65 7.1.9 0.017 0.007 13.32 7.1.8 0.021 0.004 13.76 7.1.7 0.019 0.007 13.85 7.1.6 0.044 0.007 31.81 7.1.5 0.036 0.010 31.38 7.1.4 0.027 0.017 31.80 7.1.3 0.139 0.010 31.70 7.1.2 0.046 0.014 31.75 7.1.1 0.024 0.006 13.81 7.1.0 0.014 0.011 13.70 5.6.38 0.009 0.003 14.52
preferences:dark mode live preview
37.08 ms | 400 KiB | 5 Q