3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; } ?>

preferences:
87.21 ms | 402 KiB | 5 Q