3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'Yes'; var_dump($str['1active']); var_dump($str['page_id']);
based on C2D5r
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: A non well formed numeric value encountered in /in/LCYiI on line 4 string(1) "e" Warning: Illegal string offset 'page_id' in /in/LCYiI on line 5 string(1) "Y"
Output for 4.3.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
string(1) "e" string(1) "Y"