xref: /PHP-8.2/ext/opcache/tests/bug69159.phpt (revision e9f783fc)
1--TEST--
2Bug #69159 (Opcache causes problem when passing a variable variable to a function)
3--INI--
4opcache.enable=1
5opcache.optimization_level=-1
6--EXTENSIONS--
7opcache
8--FILE--
9<?php
10$i = 1;
11$x1 = "okey";
12myFunction(${"x$i"});
13
14function myFunction($x) {
15    var_dump($x);
16}
17
18?>
19--EXPECT--
20string(4) "okey"
21