<?php $a = [1,2,3]; foreach($a as &$v){ $v++;} print_r($a);
Standard input is empty
Array ( [0] => 2 [1] => 3 [2] => 4 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!