3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(mb_substr("1", 0, PHP_INT_MAX));
Output for 5.6.28, 7.0.20 - 7.2.0
string(1) "1"
Output for 5.3.21 - 5.6.21, 7.0.0 - 7.0.6
string(0) ""