3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array('A' => 'B'); echo $arr->{'A'};
Output for 7.2.0
Notice: Trying to get property 'A' of non-object in /in/CmjTH on line 4
Output for 5.3.0 - 5.6.30, 7.0.0 - 7.1.10
Notice: Trying to get property of non-object in /in/CmjTH on line 4
Output for hhvm-3.10.1 - 3.17.3
Notice: Cannot access property on non-object in /in/CmjTH on line 4