3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mystring = 'abc'; $findme = 'a'; $pos = strpos($mystring, $findme); print "answer finding a in abc: " . $pos . "<br />" ; $mystring = 'abc'; $findme = 'z'; $pos = strpos($mystring, $findme); print "answer finding z in abc: " . $pos . "<br />" ;
Output for 4.3.0 - 7.2.0
answer finding a in abc: 0<br />answer finding z in abc: <br />