3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = '0123456789'; echo 'mb_substr($a, 0, -1)', @mb_substr($a, 0, -1), "\n"; echo 'mb_substr($a, -1)', @mb_substr($a, -1), "\n";
Output for 4.3.0 - 7.1.0
mb_substr($a, 0, -1)012345678 mb_substr($a, -1)9