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);
based on ASknG
Output for 4.3.0 - 7.1.0
text1fooArray ( [content] => foo )