meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
296 Bytes
--TEST--
Variable-variables inside arrow functions
--FILE--
<?php
$a = 1;
$var = "a";
$fn = fn() => $$var;
var_dump($fn());
${5} = 2;
$fn = fn() => ${5};
var_dump($fn());
?>
--EXPECTF--
Warning: Undefined variable $a in %s on line %d
NULL
Warning: Undefined variable $5 in %s on line %d
NULL