3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r = 'sad'; var_dump(isset($r[NULL])); var_dump($r[NULL]);
Output for 5.4.5 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(true) Notice: String offset cast occurred in /in/oEIUj on line 5 string(1) "s"
Output for 5.4.0 - 5.4.4
bool(true) Notice: String offset cast occured in /in/oEIUj on line 5 string(1) "s"
Output for 4.3.0 - 5.3.29
bool(true) string(1) "s"