How to print array inside a twig page drupal 8

i have a twig page View.view.html twig i want to print $item array inside this page so i tried

<?php
echo '<pre>';print_r($item);
?>

but it didn't print anything.How to print array inside a twig template?please help me