xref: /PHP-8.0/ext/opcache/tests/bug69159.phpt (revision f8d79582)
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--SKIPIF--
7<?php require_once('skipif.inc'); ?>
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