Skip to content

Instantly share code, notes, and snippets.

@PhenX
Forked from dhoko/gist:5998216
Created July 15, 2013 08:05
Show Gist options
  • Save PhenX/5998270 to your computer and use it in GitHub Desktop.
Save PhenX/5998270 to your computer and use it in GitHub Desktop.
<?php
/**
* PHP 5.3.3-7+squeeze15
* php op.php
*/
class Op
{
private $lang = '';
private $id = null;
function __construct()
{
$this->id = 5;
$this->lang = '';
}
public static function main() {
$stack = array();
$howMuch = 0;
while(1) {
echo 'create : ',$howMuch, 'OpObject', "\n";
for ($i=0; $i < 1000; $i++) {
$stack[] = new Op();
}
if($howMuch === 8000000) exit(2);
}
}
}
Op::main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment