title: Why not output I hope result in PHP7 using try and catch?
body: <p>In PHP7 env, I have the follow code:</p>
  
  <pre><code>try {
      echo strlen([123]);
  } catch (Exception $e) {
      echo 'error...';
  }
  </code></pre>
  
  <p>Because <code>[123]</code> is not <code>string</code>, I want it to output <code>error...</code>, but it outputs:</p>
  
  <pre><code>Warning: strlen() expects parameter 1 to be string, array given
  </code></pre>
  
  <p>Why?</p>