The purpose of this will be to output the options for an HTML drop down box but first checking to make sure that the option about to be printed is not present in $picked\_numbers. 

When I run this through my local installation of WAMP server it times out: "Fatal error: Maximum execution time of 120 seconds exceeded". The problem ceases when I remove the if statement.

Why does this not run properly?

```
<?php

$picked_numbers = array(3, 7, 9);
$num_count = 3;
$num_range = 15;

for ($x = 1; $x <= $num_range; $x++) {  

    $num_found = 0;             

    for ($y = 0; $y < $num_count; $y++) {

        if ($x = $picked_numbers[$y]) {
            $num_found = 1;
            }
        }
    }
?>

```