Skip to content

Instantly share code, notes, and snippets.

@WyriHaximus
Created December 22, 2018 21:06
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 WyriHaximus/03f88843cd1162719ab213183a491b32 to your computer and use it in GitHub Desktop.
Save WyriHaximus/03f88843cd1162719ab213183a491b32 to your computer and use it in GitHub Desktop.
<?php
unset(
$GLOBALS,
$_ENV,
$_REQUEST,
$_SERVER,
$_GET,
$_COOKIE,
$_FILES,
$_POST
);
$array = [
'time' => [
'unix_epoch' => time(),
'unix_epoch_microtime' => microtime(),
'unix_epoch_microtime_float ' => microtime(true),
],
];
meminfo_dump(fopen('./meminfo.json', 'w'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment