3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'Yes'; var_dump($str['active']); var_dump($str['page_id']);
Output for 5.4.0 - 7.1.7
Warning: Illegal string offset 'active' in /in/C2D5r on line 4 string(1) "Y" Warning: Illegal string offset 'page_id' in /in/C2D5r on line 5 string(1) "Y"
Output for 4.3.0 - 5.3.29
string(1) "Y" string(1) "Y"