3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "0"; $b = "0.0"; $c = 0; $d = false; if($a == $b) { var_dump($a); echo " == "; var_dump($b); echo"\n";} if($a == $c) { var_dump($a); echo " == "; var_dump($c); echo"\n";} if($a == $d) { var_dump($a); echo " == "; var_dump($d); echo"\n";} if($b == $c) { var_dump($b); echo " == "; var_dump($c); echo"\n";} if($b == $d) { var_dump($b); echo " == "; var_dump($d); echo"\n";} if($c == $d) { var_dump($c); echo " == "; var_dump($d); echo"\n";} if($a == $b && $a == $d && $b != $d) echo "Fuck this\n";
based on 4Mtd5
Output for 4.3.0 - 7.2.0
string(1) "0" == string(3) "0.0" string(1) "0" == int(0) string(1) "0" == bool(false) string(3) "0.0" == int(0) int(0) == bool(false) Fuck this