Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. profiler::start('function_exists');
  4. for ($x = 0; $x < 10000; $x++) {
  5.   function_exists('i_dont');
  6. }
  7. echo text::seconds(profiler::stop('function_exists')->time->delta)."\n";
  8.  
  9. function foo() {}
  10.  
  11. profiler::start('empty');
  12. for ($x = 0; $x < 10000; $x++) {
  13.   foo();
  14. }
  15. echo text::seconds(profiler::stop('empty')->time->delta)."\n";