PHP: script execution time in practice

In PHP, the execution time of the script is important for the purpose of determining the time of formation of the page or its element, for building a safe and reliable site code as a whole.

php script execution time




: , , .

PHP , . , , , , .

: .

Author's example is not a picture




PHP : microtime() time(), . , , , .





microtime() time()

: 567 56789. , - .

Author's example is not a picture




microtime() , , . - , - , , "".

script example




microtime(true) , true, - . : microtime(false).

time() , .

PHP - , . PHP . , . , , , .









- , . , .

, . - :

  • ;
  • ;
  • .

, .

, , 10 ., 1 . 5 ., , .

PHP - , , PHP . . - , .

running php script




PHP- AJAX, . , , . , . . , .

, , PHP , . .




All Articles