3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mystring = 'vabcsa'; $findme = 'a'; $pos = strpos($mystring, $findme,'1'); if ($pos !== false) { echo "The string '$findme' was found in the string '$mystring'"; echo " and exists at position $pos"; } else { echo "The string '$findme' was not found in the string '$mystring'"; }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
The string 'a' was found in the string 'vabcsa' and exists at position 1
Output for hhvm-3.10.0

Process exited with code 153.