3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo mb_substr('РФ', -2, 'UTF-8');
Output for 7.0.0 - 7.1.0
Warning: mb_substr() expects parameter 3 to be integer, string given in /in/0kOeU on line 2
Output for 4.3.0 - 5.2.17, 5.4.8 - 5.6.28
Output for 5.3.0 - 5.4.7
Warning: mb_substr() expects parameter 3 to be long, string given in /in/0kOeU on line 2