Multiple bench on PHP Source code and result Result width : - xdebug.profiler - profiler graph by KCachegrind - result in relative time only –
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
497 B

<?php
function null_B()
{
$a = 'athos porthos aramis';
$b = array('athos' => 'Milady de Winter', 'Haaa les femmes ...');
$a = NULL;
$b['athos'] = NULL;
$b['0'] = NULL;
}
function unset_B()
{
$a = 'athos porthos aramis';
$b = array('athos' => 'Milady de Winter', 'Haaa les femmes ...');
unset($a);
unset($b['athos']);
unset($b['0']);
}
for ($i = 0; $i < 100000; $i++) {
null_B();
unset_B();
}