run code in 150+ php & hhvm versions
Bugs & Features
<?php $hello = "hello"; var_dump($hello['abc']); var_dump($hello['0']); var_dump($hello['1abc']); //var_dump($hello['12abc']);
Output for 5.4.0 - 7.1.0
Warning: Illegal string offset 'abc' in /in/gpWtZ on line 4 string(1) "h" string(1) "h" Notice: A non well formed numeric value encountered in /in/gpWtZ on line 6 string(1) "e"
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.3.29
string(1) "h" string(1) "h" string(1) "e"
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/gpWtZ on line 7
Process exited with code 255.