$a = 0
$b = '0'
$c = "0"
$d = null
$e = 'null'
$f = "null"
$g = "O"
------------------------------
a------
a==0
a=='0'
a=="0"
a===0
a==null
a=='null'
a=="null"
a is not _null
a!=='0'
a!=="0"
a!==null
a!=='null'
a!=="null"
a!is_null
a==all
a=='all'
a=="all"
a!=1
a!='1'
a!="1"
a!==1
a!=='1'
a!=="1"
a==zzz
a=='zzz'
a=="zzz"
a!='flag' false
a!=='flag' true
if(a) false
b------
b==0
b=='0'
b=="0"
b==='0'
b==="0"
b is not _null
b!==0
b!=null
b!='null'
b!="null"
b!==null
b!=='null'
b!=="null"
b!is_null
b!=1
b!='1'
b!="1"
b!==1
b!=='1'
b!=="1"
b!='flag' true
b!=='flag' true
if(b) false
c------
c==0
c=='0'
c=="0"
c==='0'
c==="0"
c is not _null
c!==0
c!=null
c!='null'
c!="null"
c!==null
c!=='null'
c!=="null"
c!is_null
c!=1
c!='1'
c!="1"
c!==1
c!=='1'
c!=="1"
c!='flag' true
c!=='flag' true
if(c) false
d------
d==0
d==null
d===null
d is_null
d!='0'
d!="0"
d!==0
d!=='0'
d!=="0"
d!='null'
d!="null"
d!=='null'
d!=="null"
d !is not _null
d!=1
d!='1'
d!="1"
d!==1
d!=='1'
d!=="1"
d!='flag' true
d!=='flag' true
if(d) false
e------
e==0
e=='null'
e=="null"
e==='null'
e==="null"
e is not _null
e!='0'
e!="0"
e!==0
e!=='0'
e!=="0"
e!=null
e!==null
e!is_null
e!=1
e!='1'
e!="1"
e!==1
e!=='1'
e!=="1"
e!='flag' true
e!=='flag' true
if(e) true
f------
f==0
f=='null'
f=="null"
f==='null'
f==="null"
f is not _null
f!='0'
f!="0"
f!==0
f!=='0'
f!=="0"
f!=null
f!==null
f!is_null
f!=1
f!='1'
f!="1"
f!==1
f!=='1'
f!=="1"
f!='flag' true
f!=='flag' true
if(f) true
g------
g==0
g is not _null
g!='0'
g!="0"
g!==0
g!=='0'
g!=="0"
g!=null
g!='null'
g!="null"
g!==null
g!=='null'
g!=="null"
g!is_null
g!=1
g!='1'
g!="1"
g!==1
g!=='1'
g!=="1"
g!='flag' true
g!=='flag' true
if(g) true
------------------------------
e
------------------------------
$a = 0; evZero($a, a);
$b = '0'; evZero($b, b);
$c = "0"; evZero($c, c);
$d = null; evZero($d, d);
$e = 'null'; evZero($e, e);
$f = "null"; evZero($f, f);
function evZero($val, $str){
print $str . "------ \n
";
if($val==0){
print $str . '==0' . "\n
";
}
if($val=='0'){
print $str . "=='0'" . "\n
";
}
if($val=="0"){
print $str . '=="0"' . "\n
";
}
if($val===0){
print $str . '===0' . "\n
";
}
if($val==='0'){
print $str . "==='0'" . "\n
";
}
if($val==="0"){
print $str . '==="0"' . "\n
";
}
if($val==null){
print $str . '==null' . "\n
";
}
if($val=='null'){
print $str . "=='null'" . "\n
";
}
if($val=="null"){
print $str . '=="null"' . "\n
";
}
if($val===null){
print $str . '===null' . "\n
";
}
if($val==='null'){
print $str . "==='null'" . "\n
";
}
if($val==="null"){
print $str . '==="null"' . "\n
";
}
if(is_null($val)){
print $str . ' is_null' . "\n
";
} else {
print $str . ' is not _null' . "\n
";
}
if($val!=0){
print $str . '!=0' . "\n
";
}
if($val!='0'){
print $str . "!='0'" . "\n
";
}
if($val!="0"){
print $str . '!="0"' . "\n
";
}
if($val!==0){
print $str . '!==0' . "\n
";
}
if($val!=='0'){
print $str . "!=='0'" . "\n
";
}
if($val!=="0"){
print $str . '!=="0"' . "\n
";
}
if($val!=null){
print $str . '!=null' . "\n
";
}
if($val!='null'){
print $str . "!='null'" . "\n
";
}
if($val!="null"){
print $str . '!="null"' . "\n
";
}
if($val!==null){
print $str . '!==null' . "\n
";
}
if($val!=='null'){
print $str . "!=='null'" . "\n
";
}
if($val!=="null"){
print $str . '!=="null"' . "\n
";
}
if(!is_null($val)){
print $str . '!is_null' . "\n
";
} else {
print $str . ' !is not _null' . "\n
";
}
if($val==all){
print $str . '==all' . "\n
";
}
if($val=='all'){
print $str . "=='all'" . "\n
";
}
if($val=="all"){
print $str . '=="all"' . "\n
";
}
if($val===all){
print $str . '===all' . "\n
";
}
if($val==='all'){
print $str . "==='all'" . "\n
";
}
if($val==="all"){
print $str . '==="all"' . "\n
";
}
if($val==1){
print $str . '==1' . "\n
";
}
if($val=='1'){
print $str . "=='1'" . "\n
";
}
if($val=="1"){
print $str . '=="1"' . "\n
";
}
if($val===1){
print $str . '===1' . "\n
";
}
if($val==='1'){
print $str . "==='1'" . "\n
";
}
if($val==="1"){
print $str . '==="1"' . "\n
";
}
if($val!=1){
print $str . '!=1' . "\n
";
}
if($val!='1'){
print $str . "!='1'" . "\n
";
}
if($val!="1"){
print $str . '!="1"' . "\n
";
}
if($val!==1){
print $str . '!==1' . "\n
";
}
if($val!=='1'){
print $str . "!=='1'" . "\n
";
}
if($val!=="1"){
print $str . '!=="1"' . "\n
";
}
if($val==zzz){
print $str . '==zzz' . "\n
";
}
if($val=='zzz'){
print $str . "=='zzz'" . "\n
";
}
if($val=="zzz"){
print $str . '=="zzz"' . "\n
";
}
if($val===zzz){
print $str . '===zzz' . "\n
";
}
if($val==='zzz'){
print $str . "==='zzz'" . "\n
";
}
if($val==="zzz"){
print $str . '==="zzz"' . "\n
";
}
if($val != 'flag'){
print $str . "!='flag' true" . "\n
";
} else {
print $str . "!='flag' false" . "\n
";
}
if($val !== 'flag'){
print $str . "!=='flag' true" . "\n
";
} else {
print $str . "!=='flag' false" . "\n
";
}
if($val){
print 'if(' . $str . ") true \n
";
} else {
print 'if(' . $str . ") false \n
";
}
print "\n
";
}