3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $b = [5,6]; $a = 'b'; echo ${$a[1]};
based on iMvT9
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.8
Notice: Uninitialized string offset: 1 in /in/5iJLZ on line 6 Notice: Undefined variable: in /in/5iJLZ on line 6