3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = '111'; $array = ['x' => 'x', 'y' => 'y']; $array = 'x'; echo $$array['x'];
Output for 7.1.0
Warning: Illegal string offset 'x' in /in/5GmKS on line 5 1