3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function returnFirst($rsrnum) { $char = $rsrnum[0]; return ctype_alpha($char) ? strtolower($char) : '%23'; } echo returnFirst('ADSASTEADS')."\n"; echo returnFirst('{column_1[1]')."\n"; echo returnFirst('3SASDAsd')."\n";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
a %23 %23