@ 2017-07-10T17:59:23Z <?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";
$numberFound = 0;
foreach(i in $forbiddenChar) {
if (strpos($mystring, $forbiddenChar[i]) === false) {
} else {
// nieco som nasiel
++$numberFound;
}
}
if ($numberFound > 0 ) {
echo "nieco som nasiel\n";
}
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 7.1.7 0.007 0.007 16.90 7.1.6 0.017 0.013 35.09 7.1.5 0.012 0.016 34.81 7.1.4 0.007 0.021 34.18 7.1.3 0.015 0.015 34.31 7.1.2 0.025 0.006 34.55 7.1.1 0.006 0.009 16.26 7.1.0 0.008 0.004 16.35 7.0.20 0.003 0.009 16.48 7.0.19 0.000 0.012 16.50 7.0.18 0.000 0.013 16.15 7.0.17 0.008 0.005 15.98 7.0.16 0.009 0.004 16.00 7.0.15 0.007 0.007 15.95 7.0.14 0.004 0.009 16.11 7.0.13 0.009 0.003 16.13 7.0.12 0.000 0.012 16.31 7.0.11 0.004 0.008 16.23 7.0.10 0.003 0.010 16.24 7.0.9 0.008 0.004 16.29 7.0.8 0.003 0.009 16.27 7.0.7 0.007 0.010 16.04 7.0.6 0.006 0.006 16.09 7.0.5 0.000 0.013 16.20 7.0.4 0.009 0.003 16.29 7.0.3 0.009 0.006 16.41 7.0.2 0.003 0.010 16.48 7.0.1 0.003 0.010 16.23 7.0.0 0.003 0.009 16.07
preferences:dark mode live preview
143.56 ms | 1394 KiB | 7 Q