php_cpu.php 203 B

123456789101112131415
  1. <?php
  2. function nestedCPU($limit)
  3. {
  4. if ($limit === 0) {
  5. return;
  6. }
  7. $n = 0;
  8. for ($i = 0; $i < 100000; $i++) {
  9. $n = $n ^ $i;
  10. }
  11. nestedCPU($limit - 1);
  12. }
  13. nestedCPU(5);