- microtime: documentation ( source)
- strlen: documentation ( source)
<?php
namespace test;
$start = microtime(true);
for($i = 0; $i < 100000; ++$i){
strlen(null . null . null . null . null . null . null . null . null . null . null . null);
}
echo microtime(true) - $start, PHP_EOL;