fork download
  1. <?php
  2.  
  3. $start = memory_get_usage();
  4.  
  5. function bar() {
  6. $result = array();
  7. for ($i = 0; $i < 1000; $i++) {
  8. $result[] = $i * 10;
  9. }
  10. return $result;
  11. }
  12.  
  13. $ha = bar();
  14.  
  15. echo memory_get_usage() - $start;
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
72416