Skip to content

Instantly share code, notes, and snippets.

@gcorne
Forked from josephscott/array-vs.php
Created February 27, 2013 18:36
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 gcorne/5050357 to your computer and use it in GitHub Desktop.
Save gcorne/5050357 to your computer and use it in GitHub Desktop.
<?php
$init = memory_get_usage();
$test_me = array();
$test_me['name'] = 'Joseph Scott';
$test_me['city'] = 'Sandy';
$test_me['state'] = 'Utah';
echo "MEM: " . ( memory_get_usage() - $init ) . "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment