Advertisement
mikjaer

Untitled

Sep 1st, 2021
1,102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. $timer = time();
  4.  
  5. function shutdown()
  6. {
  7.     global $timer;
  8.  
  9.     print "Execution took ".(time() - $timer)."<br>";
  10.  
  11.     echo 'Script executed with success', PHP_EOL;
  12. }
  13.  
  14. register_shutdown_function('shutdown');
  15.  
  16.  
  17. print "Doing sketchy stuff!";
  18. sleep(5);
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement