3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'this is a string'; var_dump($string['check']); var_dump(isset($string['check'])); var_dump(isset($string['check'][0]));
Output for 7.0.0 - 7.1.0
Warning: Illegal string offset 'check' in /in/5GGYm on line 4 string(1) "t" bool(false) bool(false)
Output for hhvm-3.10.0 - 3.12.0
string(1) "t" bool(false) bool(true)
Output for 5.4.0 - 5.6.28
Warning: Illegal string offset 'check' in /in/5GGYm on line 4 string(1) "t" bool(false) bool(true)
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.3.29
string(1) "t" bool(true) bool(false)
Output for 5.0.0 - 5.0.2
string(1) "t" bool(false) bool(false)