3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello, there!'; if (!strpos($string, 'Hello')) { echo 'Did not detect "Hello" in string (default)' . PHP_EOL; } if (false == strpos($string, 'Hello')) { echo 'Did not detect "Hello" in string (loose equality)' . PHP_EOL; } if (false === strpos($string, 'Hello')) { echo 'Did not detect "Hello" in string (strict equality)' . PHP_EOL; }

preferences:
25.14 ms | 404 KiB | 5 Q