3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 'ryat'; echo $x[0]; echo $x['hi']; echo $x[0]; echo $x['hi'];
Output for 5.4.0 - 7.2.0
r Warning: Illegal string offset 'hi' in /in/99bp1 on line 4 rr Warning: Illegal string offset 'hi' in /in/99bp1 on line 6 r
Output for 4.3.0 - 5.3.29
rrrr