3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(grapheme_strlen("\r\n")); var_dump(grapheme_substr(implode("\r\n", ['abc', 'def', 'ghi']), 5));
Output for 7.0.20 - 7.2.6
int(1) string(7) "ef ghi"
Output for 5.6.0 - 7.0.10
int(2) string(8) "def ghi"