Why would un-commenting the last line in this code cause a fatal error
$html = phpQuery::newDocumentHTML($social_icons_block);
$html->find('.managed-form')->remove();
$html->find('.drag-handle')->parent()->remove();
$html->find('.set-social-icons')->parent()->remove();
//$html->find('.pull-left-space')->remove();
Error is
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20 bytes) in /Applications/AMPPS/www/startup/assets/classes/phpQuery/phpQuery/phpQueryObject.php on line 3069
The html is
<div class="managed-form">
<div class="wrp">
<h3>Social Icons</h3>
<div name="set-social-icons" complex-input="set" template=".set-social-icons"></div>
</div>
</div>
<div class="set-social-icons row">
<div class="pull-left">
<div class="drag-handle">⇅</div>
</div>
<div class="pull-left-space">
<select name="social-icon" class="inputBox-xsmall">
<option value="facebook">Facebook</option>
<option value="linkedin">LinkedIn</option>
<option value="twitter">Twitter</option>
<option value="youtube">Youtube</option>
<option value="instagram">Instagram</option>
<option value="pinterest">Pinterest</option>
<option value="google-plus">Google Plus</option>
<option value="rss">RSS</option>
</select>
</div>
<div class="pull-left-space link-outer">
<input name="link" class="inputBox inputBox-small" placeholder="Link To"/>
</div>
<div class="pull-left-space">
<input type="button" class="add-row" value="+" />
<input type="button" class="delete-row" value="-" />
</div>
</div>
Adding echo memory_get_usage(); before the commented line gives 4517876. Memory is set to 128M