3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = "micha<?php </textarea>l' OR 1=1"; $findme = "="; $pos = strpos($mystring, $findme); // Note our use of ===. Simply == would not work as expected // because the position of 'a' was the 0th (first) character. if (strpos($mystring, $findme) === false) { //echo "The string '$findme' was not found in the string '$mystring'"; echo 'nenasiel som :('; } else { echo 'je tam'; //echo "The string '$findme' was found in the string '$mystring'"; //echo " and exists at position $pos"; } echo "\n"; echo 'This ', 'string ', 'was ', 'made ', 'with multiple parameters.', chr(10); echo 'This ' . 'string ' . 'was ' . 'made ' . 'with concatenation.' . "\n"; $forbiddenChar = array("<", ">", "'", "=", "--"); echo $forbiddenChar[0] . ", ". $forbiddenChar[1] . ", " . $forbiddenChar[2] . ", " . $forbiddenChar[3] . ", " . $forbiddenChar[4] . "\n"; ?>

preferences:
31.08 ms | 402 KiB | 5 Q