<?php $block = [1, 2, 3]; foreach ($block as $key => &$form) { unset($form);}var_dump($block);
Standard input is empty
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!