Why doesn’t print_r work?

In theory, this script should display a link. But it doesn’t, and print_r doesn’t output anything!

<?php
$lol=file_get_contents("http://www.heroeswm.ru/clan_info.php?id=41");
preg_match_all("/:<\/b> <a class=pi href='([^']+)'>kekus<\/a>/", $lol, $kkaz);
echo "<pre>";
print_r($name);
echo "</pre>";
echo "<strong></strong>";
echo "<a href=\"http://www.heroeswm.ru/";
echo $kazn[1][0];
echo "\"target=\"_blank\"> ";
echo $kazn[2][0];
echo "</a>";
echo "<br>";
?>

Answer 1, authority 100%

The variable $name is not set.