3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "1"; $a[$a] = "2"; echo $a;
Output for 4.3.0 - 5.2.9, 5.2.12 - 7.1.0
12
Output for 5.2.10 - 5.2.11
Notice: Uninitialized string offset: 1 in /in/4gNAm on line 2 12