3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php # String as array weirdness $s = "Kitten"; $x = $s['ErrorCode']; print $x; # prints "K"
Output for 5.4.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: Illegal string offset 'ErrorCode' in /in/03dqk on line 5 K
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.3.29, hhvm-3.10.1 - 3.22.0
K
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/03dqk on line 7
Process exited with code 255.