title: Why does this timestamp comparing always evaluate to true?
body: <p>I have the following code to see if the allotted time has passed.
  For my demo it should all evaluate to false and nothing should happen.
  What happens ever is that it parses to true, even inf I compare it with >=</p>
  
  <p>Why do I get this strange behaviour?</p>
  
  <pre><code>$data = '[{"ip":"80.61.150.173","endtime":1343988643},{"ip":"80.61.150.173","endtime":1343988649},{"ip":"80.61.150.173","endtime":1343988650},{"ip":"80.61.150.173","endtime":1343988664},{"ip":"80.61.150.173","endtime":1343988682},{"ip":"80.61.150.173","endtime":1343988723}]';
  $json = json_decode($data,true);
  foreach($json as $key =&gt; $obj)
      {
      var_dump($obj);
      echo "&lt;BR&gt;";
      var_dump(time());
      echo "&lt;BR&gt;";
      if($obj['endtime'] &lt;= time());
          {
          echo "&lt;BR&gt;bliep&lt;P&gt;";
          }
      }
  </code></pre>
  
  <p>This code evaluates to this result:</p>
  
  <blockquote>
    <p>array(2) { ["ip"]=> string(13) "80.61.150.173" ["endtime"]=>
    int(1343988643) }<br>
    int(1343981967) </p>
    
    <p>bliep array(2) { ["ip"]=> string(13) "80.61.150.173" ["endtime"]=>
    int(1343988649) }<br>
    int(1343981967) </p>
    
    <p>bliep</p>
    
    <p>array(2) { ["ip"]=> string(13) "80.61.150.173" ["endtime"]=>
    int(1343988650) }<br>
    int(1343981967) </p>
    
    <p>bliep</p>
    
    <p>array(2) { ["ip"]=> string(13) "80.61.150.173" ["endtime"]=>
    int(1343988664) }<br>
    int(1343981967) </p>
    
    <p>bliep</p>
    
    <p>array(2) { ["ip"]=> string(13) "80.61.150.173" ["endtime"]=>
    int(1343988682) }<br>
    int(1343981967) </p>
    
    <p>bliep</p>
    
    <p>array(2) { ["ip"]=> string(13) "80.61.150.173" ["endtime"]=>
    int(1343988723) }<br>
    int(1343981967) </p>
    
    <p>bliep</p>
  </blockquote>
  
  <p>As you can see, there are all blieps there that shouldn't be there.
  The timestamps are ints, the current time is smaller than the saved time.
  It should compare easily, but it evaluates always to true, whilst now is &lt; than the stored timestamp.</p>
  
  <p>What's going on here?</p>
  
  <p>It's not my server because this code also evaluates to true on <a href="http://writecodeonline.com/php/" rel="nofollow">http://writecodeonline.com/php/</a></p>