3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = true; $b = "ceva"; $c = 0; if (($a == $b) && ($b == $c)) { // daca sunt egale intre ele var_dump($a); var_dump($c); echo 'sunt egale'; } echo "\n\n\n"; if ((NULL == 0) && (NULL < -1)) { echo "0 < -1 true"; } echo "\n\n\n"; // test 3 $string = "123abc"; $a = 123; $b = "123"; if (($a == $string) && ($b != $string)) { echo "$a == $string && $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"; }

preferences:
45.15 ms | 402 KiB | 5 Q