<?php
$a = true;
$b = "ceva";
$c = 0;
$d = false;
if (($a == $b) && ($b == $c) && ($c == $d)) { // daca sunt egale intre ele
echo "Cele 2 valori:"
var_dump($a);
var_dump($d);
echo 'sunt egale.';
}
echo "\n\n\n";
if ((NULL == 0) && (NULL < -1)) {
echo "0 e mai mic decat -1";
}
echo "\n\n\n";
$string = "123abc";
$a = 123;
$b = "123";
if (($a == $string) && ($b != $string)) {
echo "$a == $string is true \n$b != $string is true";
}
echo "\n\n\n";
$s1 = " 6";
$s2 = "6";
if ($s1 == $s2) {
echo "'$s1' == '$s2'";
}
echo "\n\n\n";
$a = md5('240610708');
$b = md5('QNKCDZO');
if ($a == $b) {
echo "$a\nsi\n$b\nsunt egale";
}
- Output for 5.4.0 - 5.4.40, 5.5.24, 5.6.8
- Parse error: syntax error, unexpected 'var_dump' (T_STRING), expecting ',' or ';' in /in/5nPSL on line 8
Process exited with code 255. - Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/5nPSL on line 8
Process exited with code 255. - Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
- Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /in/5nPSL on line 8
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error, expecting `','' or `';'' in /in/5nPSL on line 8
Process exited with code 255.
preferences:
225.11 ms | 1395 KiB | 132 Q