3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = "2sdfsdfjoi"; var_dump($number == 2); // = true (wat?) $number = "22sdfsdfjoi"; var_dump($number == 2); // = false (makes sense...) var_dump($number == 22); // = true (wait, wat?) var_dump($number === 22); // === the only way to be sure.
based on Y3Bfa
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.2.0
bool(true) bool(false) bool(true) bool(false)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/3pkVu on line 10
Process exited with code 255.