Skip to content

Instantly share code, notes, and snippets.

@prototech
Created March 1, 2014 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prototech/9295108 to your computer and use it in GitHub Desktop.
Save prototech/9295108 to your computer and use it in GitHub Desktop.
<?php
$ary = array();
for ($i = 0; $i < 1000; $i++)
{
$ary[] = 1;
foreach ($ary as &$value)
{
$value = 2;
sizeof($ary);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment