3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(mb_strrpos('abcd', 'd', -2)); var_dump(mb_strrpos('abcdd', 'd', -2));
Output for 5.2.4 - 7.1.0
bool(false) int(3)
Output for 5.2.0 - 5.2.3
int(3) int(4)
Output for 4.3.2 - 5.1.6
Warning: mb_strrpos(): Unknown encoding "-2" in /in/CIWsT on line 3 bool(false) Warning: mb_strrpos(): Unknown encoding "-2" in /in/CIWsT on line 4 bool(false)
Output for 4.3.0 - 4.3.1
Warning: mb_strrpos() [http://www.php.net/function.mb-strrpos]: Unknown encoding "-2" in /in/CIWsT on line 3 bool(false) Warning: mb_strrpos() [http://www.php.net/function.mb-strrpos]: Unknown encoding "-2" in /in/CIWsT on line 4 bool(false)