3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'foo bar baz'; $b = 'a'; var_dump( $$b[0] ); $$b[0] = 'X'; var_dump( $$b[0] );
Output for 7.0.0 - 7.1.0
string(1) "f" string(1) "X"
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
string(11) "foo bar baz" string(1) "X"