1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
--TEST-- Bug #76074 (opcache corrupts variable in for-loop) --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php function test(int $nr) { for ($i = $nr; $i <= $nr + 1; $i++) var_dump($i); } test(1); ?> --EXPECT-- int(1) int(2)