3v4l.org

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