3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "null"; $test['b'] = 'b'; var_dump($test['h']);
based on 4jafW
Output for 5.6.0 - 7.3.0alpha1
Warning: Illegal string offset 'b' in /in/Gr2lJ on line 4 Warning: Illegal string offset 'h' in /in/Gr2lJ on line 5 string(1) "b"