3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $simpleString = "Bogus String Text"; var_dump($simpleString["2wrong"]); var_dump(isset($simpleString["2wrong"]));
Output for 5.4.0 - 7.3.0rc4
Notice: A non well formed numeric value encountered in /in/SUErH on line 6 string(1) "g" bool(false)
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.3.29
string(1) "g" bool(true)
Output for 5.0.0 - 5.0.2
string(1) "g" bool(false)