title: Huge input lookup error on simplexml_load_string function
body: <p>I have an API response where sizes vary. It doesn't show error on large xml data(appx. 20MB), when I try to convert the xml object into std object using.
  This is my code</p>
  
  <pre><code>$xml = simplexml_load_string($apiResponse);
  $object = json_decode(json_encode($xml));
  </code></pre>
  
  <p>Error Message is: </p>
  
  <pre><code>simplexml_load_string(): Entity: line 1: parser error : internal error: Huge input lookup
  </code></pre>
  
  <p>I google and found <a href="https://stackoverflow.com/a/15010460/4807414">this answer</a> on stackoverflow and changed my code to </p>
  
  <pre><code>simplexml_load_string($apiResponse, 'SimpleXMLElement', LIBXML_PARSEHUGE)
  </code></pre>
  
  <p>But, error is still same. Anyone has got any Idea? Thank you in advance</p>