3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = "test"; $obj = new stdclass(); var_dump($test[true]);
Output for 5.4.5 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Notice: String offset cast occurred in /in/geT5H on line 4 string(1) "e"
Output for 5.4.0 - 5.4.4
Notice: String offset cast occured in /in/geT5H on line 4 string(1) "e"
Output for 4.3.0 - 5.3.29
string(1) "e"