Skip to content

Instantly share code, notes, and snippets.

@josephscott
Created February 27, 2013 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save josephscott/5045050 to your computer and use it in GitHub Desktop.
Save josephscott/5045050 to your computer and use it in GitHub Desktop.
<?php
class Test {
public $name;
public $city;
public $state;
public function __construct( $name, $city, $state ) {
$this->name = $name;
$this->city = $city;
$this->state = $state;
}
}
$test_me = new Test( 'Joseph Scott', 'Sandy', 'Utah' );
echo "MEM: " . memory_get_peak_usage() . "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment