xref: /PHP-8.2/ext/opcache/tests/ssa_bug_006.phpt (revision e9f783fc)
1--TEST--
2Incorrect optimization of $i = $i++
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7
8function test() {
9    $i = 1;
10    $i = $i++;
11    var_dump($i);
12
13    $i = 1;
14    $i = $i--;
15    var_dump($i);
16}
17test();
18
19?>
20--EXPECT--
21int(1)
22int(1)
23