Skip to content

Instantly share code, notes, and snippets.

@petermcd
Created December 25, 2019 22:38
Show Gist options
  • Save petermcd/71362fd39d87f25f15233d6861807f90 to your computer and use it in GitHub Desktop.
Save petermcd/71362fd39d87f25f15233d6861807f90 to your computer and use it in GitHub Desktop.
Timing script for running an extension
<?php
$lines = file('php-7.4.1/Zend/zend_language_parser.c');
$started = microtime();
foreach ($lines as $line) {
str_reverse($line);
}
$ended = microtime();
echo $ended - $started;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment