3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'Yes'; var_dump($str['active']); var_dump($str['page_id']);
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
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, hhvm-3.10.0 - 3.12.0
string(1) "Y" string(1) "Y"