I spent less than 6 10-seconds to finish this. Spoiler: Take a deep breath and read this all out before you inhale again Now let's start counting backwards!
kilo? reference to kg? since 1000g = 1 kg? oh yeah i could write a script that counts from 1002 to the infinity and beyond since there no limits
Is it event correct to say "to the infinity"? Infinity is not a number so $i can not be infinity as null won't ever be boolean. "and beyond" is false statement. Whenever referencing the positive infinity, the plus sign is always trailing because the infinity is abstract concept of something without bounds.
Who doesn't like the C++ speed? Code: #include <iostream> int main(){ for(unsigned j = 0; j <= 1000; ++j){ std::cout << j << std::endl; } std::cout << "While you count a second I already finished :p" << std::endl; return 0; }
It is faster on PHP using `php -r`. Code: php -r 'for($i=11;$i<1001;$i++) echo $i,PHP_EOL;' | clip # Windows clipboard command
What question? Since you are only generating the data once, coding speed is much more important than the application's performance.
Considering the time required to code the program + the time required to compile the program + the total time that the program spends to run before its last copy gets deleted, or before Homo sapiens becomes extinct, PHP < C++. In a macroscopic view for humanity, PHP is more beneficial to humans!