xref: /PHP-8.0/Zend/tests/027.phpt (revision 3d2a5940)
1--TEST--
2Testing dynamic calls using variable variables with curly syntax
3--FILE--
4<?php
5
6$a = 'b';
7$b = 'c';
8$c = 'strtoupper';
9
10var_dump(${${$a}}('foo') == 'FOO');
11
12$a = 'b';
13$b = 'c';
14$c = 'strtoupper';
15$strtoupper = 'strtolower';
16
17var_dump(${${++$a}}('FOO') == 'foo');
18
19?>
20--EXPECT--
21bool(true)
22bool(true)
23