3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "this is \n text"; $b = "this is ☭ text"; echo mb_strpos($a, "text", 0, "UTF-8") . PHP_EOL; echo mb_strpos($b, "text", 0, "UTF-8") . PHP_EOL;
based on do0Gi
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
10 10