<?php $i = 0;$otvet = function () use (&$i) { return $i * $i;}; for ($i = 1; $i < 10; ++$i) { echo "{$i}x{$i}={$otvet()}\n";}
Standard input is empty
1x1=1 2x2=4 3x3=9 4x4=16 5x5=25 6x6=36 7x7=49 8x8=64 9x9=81
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!