IHYPRESS PROGRAMMING
PHP programs with code and output for beginners
HOME
|
ASP
|
C
|
CSS
|
GNUPLOT
|
HTML
|
JAVASCRIPT
|
PERL
|
PHP
|
PYTHON
|
RUBY
|
SVG
PHP
❯ Execution Time
<14>
<?php $time_start = microtime(true); //assigning 0 to $x twenty million times. for ($i = 1; $i <= 20000000; ++$i) $x = 0; $time_end = microtime(true); $time = $time_end - $time_start; echo 'Script took '.$time.' seconds to execute'; ?>
Script took 2.2373089790344 seconds to execute
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland