<?php $sum = $x * 2; for ($x = 1; $x < 10; $x++) { echo "$x * $x = $sum\n"; }
Standard input is empty
1 * 1 = 0 2 * 2 = 0 3 * 3 = 0 4 * 4 = 0 5 * 5 = 0 6 * 6 = 0 7 * 7 = 0 8 * 8 = 0 9 * 9 = 0
PHP Notice: Undefined variable: x in /home/xfvi6J/prog.php on line 3