title: Allowed memory size of 536870912 bytes exhausted (tried to allocate 268439552 bytes)
body: <pre><code>$html = file_get_html('https://m.gsmarena.com/');
  $videos = [];
  foreach ($html-&gt;find('div.swiper-half-slide') as $video) {
  foreach ($video-&gt;find('strong')as $name){
  
     echo $name-&gt;innertext;
     $videos[]=$name;
  }}
  print_r($videos);
  </code></pre>
  
  <p>im getting fatalerror Allowed memory size of 536870912 bytes exhausted (tried to allocate 268439552 bytes) in C:\xampp\htdocs\scrappingpractise\scraper.php on line 24</p>