3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $n = "afcdebhijklmnopqrstuvxyz"; var_dump( $n[true].$n[""].$n[true*10-1] );
Output for 5.4.5 - 7.2.0
Notice: String offset cast occurred in /in/UX54r on line 5 Warning: Illegal string offset '' in /in/UX54r on line 5 string(3) "fak"
Output for 5.4.0 - 5.4.4
Notice: String offset cast occured in /in/UX54r on line 5 Warning: Illegal string offset '' in /in/UX54r on line 5 string(3) "fak"
Output for 4.3.0 - 5.3.29
string(3) "fak"