- print_r: documentation ( source)
<?php
xhprof_enable();
$foo = strlen("foo bar");
function test_func() {
$i = 0;
while ($i < 1000000) {
$i += 1;
}
}
test_func();
function recurse($x) {
if ($x < 0) {
return;
}
return recurse($x - 1);
}
recurse(10);
$xhprof_data = xhprof_disable();
print_r($xhprof_data);
?>