3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0; $b = ""; if ($a != $b) { echo "ehy, <$a> and <$b> are different!?!?!?!?!?\n"; } else { echo "ehy, <$a> and <$b> are the same!?!?!?!?!?\n"; } echo "ok, i was joking!\n"; if ($a !== $b) { echo "now, <$a> and <$b> are really different!\n"; } else { echo "now, <$a> and <$b> are really the same!\n"; }
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
ehy, <0> and <> are different!?!?!?!?!? ok, i was joking! now, <0> and <> are really different!
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
ehy, <0> and <> are the same!?!?!?!?!? ok, i was joking! now, <0> and <> are really different!

preferences:
132.74 ms | 408 KiB | 5 Q