3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = array(); $h = 'd'; $$h[] = 'test'; print_r($d);
Output for hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.0
Array ( [0] => test )
Output for 4.3.2 - 5.6.30
Fatal error: Cannot use [] for reading in /in/BJXN7 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot use [] for reading in /in/BJXN7 on line 5