3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original_multibyte_string = 'țată în HERE'; $a_non_multibyte_str_same_length = '123456789HERE'; // HERE is on 10th (9th element) character echo 'strpos finds HERE at: '.strpos($original_multibyte_string,'HERE').' '.'mb_strpos finds HERE at: '.strpos($a_non_multibyte_str_same_length,'HERE');
Output for git.master, git.master_jit, rfc.property-hooks
strpos finds HERE at: 12 mb_strpos finds HERE at: 9

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
47.07 ms | 401 KiB | 8 Q