Optimizing php conditionals
<p>I have something like this:</p>

<pre><code>&lt;?php

$fix1 = XXXXXXX //Integer. Problem isn't here. Extracted automatically

$iffix1 = range(9000000,8000000);
$iffix2 = range(7999999,7888888);
...

//There're more iffix[XX]s, up to $iffix60

if($fix1 = in_array($iffix1)) {
    $var1 = 1;
} elseif($fix2 = in_array($iffix2)){
    $var2 = 2;
} ....

//I have 60 more elseifs as well

$result = $var1 * $fix1;
echo $result;

?&gt;
</code></pre>

<p>The script is more complicated than that, but the question question only concerns this bit, Obviously, I get a low-memory error.</p>

<p>How can I fix this?</p>
