3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = "2sdfsdfjoi"; var_dump($number == 2); // wat? $number = "22sdfsdfjoi"; var_dump($number == 2); // makes sense... var_dump($number == 22); // wait, wat? var_dump($number === 22); // === the only way to be sure.
based on B5YbL
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/Y3Bfa on line 10
Process exited with code 255.