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.

29 lines
394 B

<?php
$array = array('foo' => 'bar', 'item', 'Value');
function isArray()
{
global $array;
if (is_array($array));
}
function castArray()
{
global $array;
if ((array) $array == $array);
}
function gettypeArray()
{
global $array;
if (gettype($array) == "array");
}
for ($i = 0; $i < 100000; $i++) {
isArray();
castArray();
gettypeArray();
}