3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test_array = array( 0 => "zero", 1 => "one", ); $string = 'test_array[0]'; echo ${string};
Output for 4.3.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant string - assumed 'string' in /in/9vv3Y on line 9 test_array[0]
Output for hhvm-3.12.0
Notice: Use of undefined constant string - assumed 'string' in /in/9vv3Y on line -1 test_array[0]