3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(strripos('abcdéf12345abcdéf', 'é')); // 15 var_dump(strripos('abcdéf12345abcdéf', 'é', -4)); // 4 var_dump(mb_strripos('abcdéf12345abcdéf', 'é')); // 11 var_dump(mb_strripos('abcdéf12345abcdéf', 'é', -4)); // 11 var_dump(grapheme_strripos('abcdéf12345abcdéf', 'é')); // 11 var_dump(grapheme_strripos('abcdéf12345abcdéf', 'é', -4)); // 11
based on ARWnA
Output for 7.3.0alpha1 - 7.3.0beta1
int(16) int(4) int(15) int(4) Fatal error: Uncaught Error: Call to undefined function grapheme_strripos() in /in/MLXKJ:9 Stack trace: #0 {main} thrown in /in/MLXKJ on line 9
Process exited with code 255.
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.2.6
int(16) int(4) int(15) int(4) int(15) int(15)