3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'abc'; $find = 'b'; $pos = strpos($string, $find); if ($pos === false) { echo "The string '$find' was not found in the string '$string'"; } else { echo "The string '$find' was found in the string '$string'"; echo " and exists at position $pos"; } ?>
based on XoM32
Output for 4.3.0 - 7.2.0
The string 'b' was found in the string 'abc' and exists at position 1