3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(grapheme_strlen("\r\n")); var_dump(grapheme_substr(implode("\r\n", ['abc', 'def', 'ghi']), 5));

preferences:
45.57 ms | 405 KiB | 5 Q