3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo strpos('abcdefg', 'g', -1);
based on vKc7k
Output for 7.1.0 - 7.3.0alpha1
6
Output for 5.6.0 - 7.0.20
Warning: strpos(): Offset not contained in string in /in/qVY3h on line 3