3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = "2sdfsdfjoi"; var_dump($number == 2); var_dump($number === 2); $number = "22sdfsdfjoi"; var_dump($number == 2); $string1 = "foo"; $string2 = "bar"; var_dump($string1 == $string2);
based on XTdD5
Output for 4.3.0 - 7.2.0
bool(true) bool(false) bool(false) bool(false)