<?php for ($i = 0; $i < 10; ++$i) { var_dump($i); function f() { }}
Standard input is empty
int(0) int(1)
PHP Fatal error: Cannot redeclare f() (previously declared in /home/CvADjl/prog.php:8) in /home/CvADjl/prog.php on line 6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!