3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $original_multibyte_string = 'țată în HERE'; $a_non_multibyte_str_same_length = '123456789HERE'; // HERE is on 10th character echo 'strpos finds HERE at: '.strpos($original_multibyte_string,'HERE').'/n'; echo 'mb_strpos finds HERE at: '.strpos($a_non_multibyte_str_same_length,'HERE');
based on BphP1
Output for 4.3.0 - 7.2.0
strpos finds HERE at: 12/nmb_strpos finds HERE at: 9