<?php $n = 10000000; $t = -microtime(true); $j = 0; $k = 0; for ($i = 0; $i < $n; $i++) { $j++; $k += 1; } printf("%.2f\n", $t + microtime(true)); $t = -microtime(true); $a = []; $j = 0; $k = 0; for ($i = 0; $i < $n; $i++) { $j++; $k += ($a[$i] ?? 1); } printf("%.2f\n", $t + microtime(true));
You have javascript disabled. You will not be able to edit any code.
This script was stopped while abusing our resources