3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$foo = 'hello, world!';var_dump($foo[1]);var_dump('hello, world!'[1]);
Output for 5.3.0 - 5.4.32
<?php$foo = 'hello, world!';var_dump($foo[1]);var_dump('hello, world!'[1]);