3v4l.org

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