xref: /php-src/ext/opcache/tests/bug76074.phpt (revision e9f783fc)
1--TEST--
2Bug #76074 (opcache corrupts variable in for-loop)
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7
8function test(int $nr) {
9    for ($i = $nr; $i <= $nr + 1; $i++)
10        var_dump($i);
11}
12
13test(1);
14
15?>
16--EXPECT--
17int(1)
18int(2)
19