3v4l.org

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