@ 2018-04-17T18:35:47Z <?php
$mapchoice0 = true;
$mapchoice1 = false;
$mapchoice2 = false;
$mapchoice3 = false;
$mapchoice4 = false;
$mapchoice5 = false;
$mapchoice6 = false;
$mapchoice7 = false;
$mapchoice8 = false;
$mapchoice9 = false;
$mapchoice10 = false;
$mapchoice11 = false;
$mapchoice12 = false;
$mapchoice13 = false;
$mapchoice14 = false;
$mapchoice15 = false;
$mapchoice16 = false;
$mapchoice17 = false;
$mapchoice18 = false;
$mapchoice19 = false;
$mapchoice20 = false;
$mapchoice21 = false;
$mapchoice22 = false;
$mapchoice23 = false;
$mapchoice23 = false;
$mapchoice24 = false;
$mapchoice25 = false;
$mapchoice26 = false;
$mapchoice27 = false;
$mapchoice28 = false;
$mapchoice29 = false;
$mapchoice30 = false;
$mapchoice31 = false;
$mapchoice32 = false;
$mapchoice33 = false;
$mapchoice34 = false;
$mapchoice35 = false;
$mapchoice36 = false;
$mapchoice37 = false;
$mapchoice38 = false;
$mapchoice39 = false;
$mapchoice40 = false;
$mapchoice41 = false;
$gmchoice0 = true;
$gmchoice1 = false;
$gmchoice2 = false;
$gmchoice3 = false;
$gmchoice4 = false;
$gmchoice5 = false;
$gmchoice6 = false;
$gmchoice7 = false;
$gmchoice8 = false;
$gmchoice9 = false;
$gmchoice10 = false;
/*
$mapchoice0 = $_POST['mapchoice0'];
print $_POST['mapchoice0'];
$mapchoice1 = $_POST['mapchoice1'];
$mapchoice2 = $_POST['mapchoice2'];
$mapchoice3 = $_POST['mapchoice3'];
$mapchoice4 = $_POST['mapchoice4'];
$mapchoice5 = $_POST['mapchoice5'];
$mapchoice6 = $_POST['mapchoice6'];
$mapchoice7 = $_POST['mapchoice7'];
$mapchoice8 = $_POST['mapchoice8'];
$mapchoice9 = $_POST['mapchoice9'];
$mapchoice10 = $_POST['mapchoice10'];
$mapchoice11 = $_POST['mapchoice11'];
$mapchoice12 = $_POST['mapchoice12'];
$mapchoice13 = $_POST['mapchoice13'];
$mapchoice14 = $_POST['mapchoice14'];
$mapchoice15 = $_POST['mapchoice15'];
$mapchoice16 = $_POST['mapchoice16'];
$mapchoice17 = $_POST['mapchoice17'];
$mapchoice18 = $_POST['mapchoice18'];
$mapchoice19 = $_POST['mapchoice19'];
$mapchoice20 = $_POST['mapchoice20'];
$mapchoice21 = $_POST['mapchoice21'];
$mapchoice22 = $_POST['mapchoice22'];
$mapchoice23 = $_POST['mapchoice23'];
$mapchoice23 = $_POST['mapchoice24'];
$mapchoice24 = $_POST['mapchoice25'];
$mapchoice25 = $_POST['mapchoice26'];
$mapchoice26 = $_POST['mapchoice27'];
$mapchoice27 = $_POST['mapchoice28'];
$mapchoice28 = $_POST['mapchoice29'];
$mapchoice29 = $_POST['mapchoice30'];
$mapchoice30 = $_POST['mapchoice31'];
$mapchoice31 = $_POST['mapchoice32'];
$mapchoice32 = $_POST['mapchoice33'];
$mapchoice33 = $_POST['mapchoice34'];
$mapchoice34 = $_POST['mapchoice35'];
$mapchoice35 = $_POST['mapchoice36'];
$mapchoice36 = $_POST['mapchoice37'];
$mapchoice37 = $_POST['mapchoice38'];
$mapchoice38 = $_POST['mapchoice39'];
$mapchoice39 = $_POST['mapchoice40'];
$mapchoice40 = $_POST['mapchoice41'];
$mapchoice41 = $_POST['mapchoice42'];
*/
$mapchoice = array(
$mapchoice0,
$mapchoice1,
$mapchoice2,
$mapchoice3,
$mapchoice4,
$mapchoice5,
$mapchoice6,
$mapchoice7,
$mapchoice8,
$mapchoice9,
$mapchoice10,
$mapchoice11,
$mapchoice12,
$mapchoice13,
$mapchoice14,
$mapchoice15,
$mapchoice16,
$mapchoice17,
$mapchoice18,
$mapchoice19,
$mapchoice20,
$mapchoice21,
$mapchoice22,
$mapchoice23,
$mapchoice24,
$mapchoice25,
$mapchoice26,
$mapchoice27,
$mapchoice28,
$mapchoice29,
$mapchoice30,
$mapchoice31,
$mapchoice32,
$mapchoice33,
$mapchoice34,
$mapchoice35,
$mapchoice36,
$mapchoice37,
$mapchoice38,
$mapchoice39,
$mapchoice40,
$mapchoice41,
);
/*
$gmchoice0 = $_POST['gmchoice0'];
$gmchoice1 = $_POST['gmchoice1'];
$gmchoice2 = $_POST['gmchoice2'];
$gmchoice3 = $_POST['gmchoice3'];
$gmchoice4 = $_POST['gmchoice4'];
$gmchoice5 = $_POST['gmchoice5'];
$gmchoice6 = $_POST['gmchoice6'];
$gmchoice7 = $_POST['gmchoice7'];
$gmchoice8 = $_POST['gmchoice8'];
$gmchoice9 = $_POST['gmchoice9'];
$gmchoice10 = $_POST['gmchoice10'];
*/
$gmchoice = array(
$gmchoice0,
$gmchoice1,
$gmchoice2,
$gmchoice3,
$gmchoice4,
$gmchoice5,
$gmchoice6,
$gmchoice7,
$gmchoice8,
$gmchoice9,
$gmchoice10);
$iterations = 25;
$bol_level = array();
$bol_gm = array();
$final = "";
class gamelevel{
private $name;
private $fname;
public function __construct($fn, $string_name){
$this->fname = $fn;
$this->name = $string_name;
}
public function getfname(){return $this->fname;}
}
$level = array(
new gamelevel("mp_afghan", "Afghan"),
new gamelevel("mp_derail", "Derail"),
new gamelevel("mp_estate","Estate"),
new gamelevel("mp_favela", "Favela"),
new gamelevel("mp_highrise", "Highrise"),
new gamelevel("mp_invation", "Invation"),
new gamelevel("mp_checkpoint", "Karachi"),
new gamelevel("mp_quarry", "Quarry"),
new gamelevel("mp_rundown", "Rundown"),
new gamelevel("mp_rust","Rust"),
new gamelevel("mp_scrapyard","Scrapyard"),
new gamelevel("mp_nightshift", "Skidrow"),
new gamelevel("mp_subbase", "Sub Base"),
new gamelevel("mp_terminal","Terminal"),
new gamelevel("mp_underpass", "Underpass"),
new gamelevel("mp_brecourt", "Wasteland"),
new gamelevel("mp_complex", "Bailout"),
new gamelevel("mp_crash", "Crash"),
new gamelevel("mp_compact", "Salvage"),
new gamelevel("mp_overgrown", "Overgrown"),
new gamelevel("mp_storm", "Storm"),
new gamelevel("mp_abandon", "Carnival"),
new gamelevel("fuel2", "Fuel"),
new gamelevel("mp_strike", "Strike"),
new gamelevel("mp_trailerpark", "Trailer Park"),
new gamelevel("mp_vacant", "Vacant"),
new gamelevel("mp_bloc", "Bloc"),
new gamelevel("mp_block_sh", "Abandoned City"),
new gamelevel("mp_cargoship", "Wet Work"),
new gamelevel("mp_cargoship_sh", "Freighter"),
new gamelevel("mp_crash_tropical", "Crash Tropical"),
new gamelevel("mp_cross_fire", "Crossfire"),
new gamelevel("mp_fav_tropical", "Favela Tropical"),
new gamelevel("mp_estate_tropical", "Estate Tropical"),
new gamelevel("mp_firingrange", "Firing Range"),
new gamelevel("mp_killhouse", "Killhouse"),
new gamelevel("mp_nuked", "Nuketown"),
new gamelevel("mp_rust_long", "Rust Long"),
new gamelevel("mp_shipment", "Shipment"),
new gamelevel("mp_shipment_long", "Shipment Long"),
new gamelevel("mp_storm_spring", "Chemical Plant"),
new gamelevel("oilrig", "Oil Rig")
);
$gametype = array(
new gamelevel("war","Team Deathmatch"),
new gamelevel("ffa","Free-For-All"),
new gamelevel("dom","Domination"),
new gamelevel("koth", "Headquarters"),
new gamelevel("sab", "Sabotage"),
new gamelevel("sd","Search & Destroy"),
new gamelevel("arena", "Arena"),
new gamelevel("dd", "Demolition"),
new gamelevel("ctf", "Capture The Flag"),
new gamelevel("oneflag", "One Flag CTF"),
new gamelevel("gtnw", "Global Thermo-Nuclear War"));
class mode{
public $level;
public $gametype;
function __construct($l,$g){
$this->level=$l;
$this->gametype=$g;
}
public function getString(){
return "g_gametype ".$this->gametype->getfname()." map ".$this->level->getfname();
}
}
$finalModeList = array();
function buildOptionLists(){
global $level;
global $gametype;
global $bol_level;
global $bol_gm;
global $mapchoice;
global $gmchoice;
$bollevel = array();
$bolgm = array();
for ($x = 0; $x < count($mapchoice); $x++){
if ($mapchoice[$x] == true)
array_push($bollevel,$level[$x]);
}
for ($x = 0; $x < count($gmchoice); $x++){
if ($gmchoice[$x] == true)
array_push($bolgm,$gametype[$x]);
}
/*
if ($mapchoice0 == true)
array_push($bollevel,$level[0]);
if ($mapchoice1 == true)
array_push($bollevel,$level[1]);
if ($mapchoice2 == true)
array_push($bollevel,$level[2]);
if ($mapchoice3 == true)
array_push($bollevel,$level[3]);
if ($mapchoice4 == true)
array_push($bollevel,$level[4]);
if ($mapchoice5 == true)
array_push($bollevel,$level[5]);
if ($mapchoice6 == true)
array_push($bollevel,$level[6]);
if ($mapchoice7 == true)
array_push($bollevel,$level[7]);
if ($mapchoice8 == true)
array_push($bollevel,$level[8]);
if ($mapchoice9 == true)
array_push($bollevel,$level[9]);
if ($mapchoice10 == true)
array_push($bollevel,$level[10]);
if ($mapchoice11 == true)
array_push($bollevel,$level[11]);
if ($mapchoice12 == true)
array_push($bollevel,$level[12]);
if ($mapchoice13 == true)
array_push($bollevel,$level[13]);
if ($mapchoice14 == true)
array_push($bollevel,$level[14]);
if ($mapchoice15 == true)
array_push($bollevel,$level[15]
if ($mapchoice16 == true)
array_push($bollevel,$level[16]);
if ($mapchoice17 == true)
array_push($bollevel,$level[17]);
if ($mapchoice18 == true)
array_push($bollevel,$level[18]);
if ($mapchoice19 == true)
array_push($bollevel,$level[19]);
if ($mapchoice20 == true)
array_push($bollevel,$level[20]);
if ($mapchoice21 == true)
array_push($bollevel,$level[21]);
if ($mapchoice22 == true)
array_push($bollevel,$level[22]);
if ($mapchoice23 == true)
array_push($bollevel,$level[23]);
if ($mapchoice24 == true)
array_push($bollevel,$level[24]);
if ($mapchoice25 == true)
array_push($bollevel,$level[25]);
if ($mapchoice26 == true)
array_push($bollevel,$level[26]);
if ($mapchoice27 == true)
array_push($bollevel,$level[27]);
if ($mapchoice28 == true)
array_push($bollevel,$level[28]);
if ($mapchoice29 == true)
array_push($bollevel,$level[29]);
if ($mapchoice30 == true)
array_push($bollevel,$level[30]);
if ($mapchoice31 == true)
array_push($bollevel,$level[31]);
if ($mapchoice32 == true)
array_push($bollevel,$level[32]);
if ($mapchoice33 == true)
array_push($bollevel,$level[33]);
if ($mapchoice34 == true)
array_push($bollevel,$level[34]);
if ($mapchoice35 == true)
array_push($bollevel,$level[35]);
if ($mapchoice36 == true)
array_push($bollevel,$level[36]);
if ($mapchoice37 == true)
array_push($bollevel,$level[37]);
if ($mapchoice38 == true)
array_push($bollevel,$level[38]);
if ($mapchoice39 == true)
array_push($bollevel,$level[39]);
if ($mapchoice40 == true)
array_push($bollevel,$level[40]);
if ($mapchoice41 == true)
array_push($bollevel,$level[41]);
if ($gmchoice0 == true)
array_push($bolgm,$gametype[0]);
if ($gmchoice1 == true)
array_push($bolgm,$gametype[1]);
if ($gmchoice2 == true)
array_push($bolgm,$gametype[2]);
if ($gmchoice == true)
array_push($bolgm,$gametype[]);
*/
for ($x = 0; $x < count($bolgm); $x++){
$bol_gm[$x] = $bolgm[$x];
}
for ($x = 0; $x < count($bollevel); $x++){
$bol_level[$x] = $bollevel[$x];
}
}
function buildList(){
global $iterations;
global $finalModeList;
global $bol_level;
global $bol_gm;
for ($x = 0; $x < $iterations; $x++)
array_push($finalModeList,new mode($bol_level[mt_rand(0,(count($bol_level)-1))],$bol_gm[mt_rand(0,(count($bol_gm)-1))]));
}
function buildString(){
global $final;
global $finalModeList;
for ($x = 0; $x < count($finalModeList); $x++)
$final = $final.$finalModeList[$x]->getString()." ";
}
buildOptionLists();
buildList();
buildString();
echo $final;
?>
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) 8.3.6 0.006 0.009 18.43 8.3.5 0.012 0.003 18.18 8.3.4 0.000 0.018 18.91 8.3.3 0.007 0.007 19.02 8.3.2 0.005 0.003 21.88 8.3.1 0.007 0.000 23.65 8.3.0 0.005 0.003 19.78 8.2.18 0.000 0.015 16.38 8.2.17 0.015 0.000 22.96 8.2.16 0.006 0.009 20.39 8.2.15 0.015 0.003 24.18 8.2.14 0.005 0.003 24.66 8.2.13 0.008 0.000 19.50 8.2.12 0.004 0.004 26.35 8.2.11 0.007 0.003 20.99 8.2.10 0.006 0.006 19.64 8.2.9 0.005 0.003 17.77 8.2.8 0.003 0.005 18.05 8.2.7 0.006 0.003 18.05 8.2.6 0.000 0.008 18.34 8.2.5 0.008 0.000 18.10 8.2.4 0.004 0.004 19.47 8.2.3 0.000 0.008 19.37 8.2.2 0.000 0.007 18.38 8.2.1 0.008 0.000 18.41 8.2.0 0.000 0.007 18.40 8.1.28 0.014 0.007 25.92 8.1.27 0.004 0.004 23.91 8.1.26 0.004 0.004 26.35 8.1.25 0.003 0.005 28.09 8.1.24 0.006 0.003 23.91 8.1.23 0.008 0.004 22.63 8.1.22 0.005 0.003 17.88 8.1.21 0.004 0.004 19.16 8.1.20 0.003 0.007 17.48 8.1.19 0.006 0.003 17.48 8.1.18 0.006 0.003 18.10 8.1.17 0.004 0.004 18.71 8.1.16 0.006 0.003 19.11 8.1.15 0.005 0.002 19.13 8.1.14 0.000 0.007 17.87 8.1.13 0.003 0.003 19.06 8.1.12 0.004 0.004 17.68 8.1.11 0.008 0.003 17.61 8.1.10 0.000 0.008 17.52 8.1.9 0.003 0.006 17.69 8.1.8 0.008 0.000 17.60 8.1.7 0.003 0.006 17.65 8.1.6 0.003 0.007 17.69 8.1.5 0.000 0.008 17.71 8.1.4 0.000 0.008 17.55 8.1.3 0.000 0.008 17.82 8.1.2 0.011 0.000 17.70 8.1.1 0.006 0.003 17.67 8.1.0 0.003 0.006 17.54 8.0.30 0.002 0.005 20.04 8.0.29 0.006 0.003 17.00 8.0.28 0.000 0.008 18.68 8.0.27 0.004 0.004 17.43 8.0.26 0.004 0.004 17.44 8.0.25 0.002 0.005 17.10 8.0.24 0.000 0.007 17.12 8.0.23 0.000 0.009 16.98 8.0.22 0.008 0.000 16.94 8.0.21 0.003 0.003 17.09 8.0.20 0.000 0.007 17.04 8.0.19 0.003 0.006 17.14 8.0.18 0.004 0.004 17.04 8.0.17 0.006 0.003 17.01 8.0.16 0.004 0.004 17.07 8.0.15 0.005 0.002 16.89 8.0.14 0.009 0.000 17.05 8.0.13 0.003 0.003 13.49 8.0.12 0.000 0.007 16.91 8.0.11 0.002 0.005 16.91 8.0.10 0.000 0.008 16.89 8.0.9 0.008 0.000 17.02 8.0.8 0.016 0.000 17.05 8.0.7 0.000 0.008 16.92 8.0.6 0.000 0.008 17.14 8.0.5 0.002 0.005 16.89 8.0.3 0.009 0.012 17.30 8.0.2 0.010 0.010 17.40 8.0.1 0.008 0.000 17.22 8.0.0 0.012 0.006 16.79 7.4.33 0.000 0.005 15.55 7.4.32 0.009 0.000 16.76 7.4.30 0.007 0.000 16.63 7.4.29 0.003 0.003 16.79 7.4.28 0.003 0.006 16.77 7.4.27 0.011 0.000 16.76 7.4.26 0.003 0.005 16.73 7.4.25 0.007 0.000 16.64 7.4.24 0.005 0.003 16.83 7.4.23 0.008 0.000 16.73 7.4.22 0.000 0.008 16.89 7.4.21 0.005 0.011 16.75 7.4.20 0.000 0.007 16.63 7.4.16 0.006 0.011 16.73 7.4.14 0.013 0.008 17.86 7.4.13 0.009 0.009 16.68 7.4.12 0.013 0.010 16.72 7.4.11 0.009 0.009 16.59 7.4.10 0.010 0.007 16.72 7.4.9 0.019 0.006 16.66 7.4.8 0.008 0.011 19.39 7.4.7 0.010 0.007 16.70 7.4.6 0.007 0.010 16.56 7.4.5 0.006 0.009 16.71 7.4.4 0.012 0.006 16.66 7.4.0 0.006 0.010 14.88 7.3.33 0.003 0.003 13.45 7.3.32 0.003 0.003 13.50 7.3.31 0.004 0.004 16.53 7.3.30 0.008 0.000 16.48 7.3.29 0.000 0.007 16.47 7.3.28 0.009 0.006 16.47 7.3.26 0.007 0.013 16.58 7.3.24 0.010 0.007 16.71 7.3.23 0.013 0.004 16.42 7.3.21 0.016 0.006 16.52 7.3.20 0.011 0.006 16.56 7.3.19 0.009 0.009 16.64 7.3.18 0.011 0.005 16.87 7.3.17 0.003 0.015 16.65 7.3.16 0.007 0.010 16.45 7.2.33 0.011 0.007 16.97 7.2.32 0.006 0.012 17.03 7.2.31 0.014 0.007 16.91 7.2.30 0.010 0.007 16.87 7.2.29 0.010 0.010 16.99 7.2.6 0.024 0.003 16.88 7.2.5 0.004 0.004 17.00 7.2.4 0.440 0.013 18.28 7.2.3 0.338 0.012 18.24 7.2.2 0.205 0.016 17.93 7.2.1 0.260 0.014 18.15 7.2.0 0.297 0.012 17.57 7.1.20 0.005 0.003 15.96 7.1.16 0.319 0.011 16.79 7.1.15 0.298 0.014 17.00 7.1.14 0.235 0.015 16.90 7.1.13 0.338 0.013 17.05 7.1.12 0.343 0.014 16.98 7.1.11 0.295 0.015 16.27 7.1.10 0.282 0.011 16.00 7.1.9 0.581 0.013 16.47 7.1.8 0.676 0.016 16.36 7.1.7 0.448 0.010 15.27 7.1.6 0.631 0.019 33.38 7.1.5 0.704 0.019 32.91 7.1.4 0.685 0.024 32.75 7.1.3 0.818 0.018 32.98 7.1.2 0.783 0.017 32.84 7.1.1 0.739 0.014 14.83 7.1.0 0.431 0.017 15.07
preferences:dark mode live preview
62.55 ms | 400 KiB | 5 Q