3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = '漢字仮名交じり文'; echo "strlen: " . strlen($s) . "\n"; echo "mb_strlen: " . mb_strlen ($s, 'utf-8');
Output for 4.3.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
strlen: 24 mb_strlen: 8