3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 1; echo $name = "text".$i; $$name = array(); echo $$name['content'] = 'foo'; print_r($text1);
Output for hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
text1fooArray ( [content] => foo )
Output for 5.4.0 - 5.6.28
text1 Warning: Illegal string offset 'content' in /in/ASknG on line 6 fooArray ( )
Output for 4.3.0 - 5.3.29
text1fooArray ( )