3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '123123123123123123123'; $b = '123123123123123123124'; $c = '1231231231231231231234'; var_dump($a == $b); var_dump($a == $c); var_dump((int) $a === (int) $b); var_dump((int) $a === (int) $c); var_dump((int)$a == $a);
based on 42lqK
Output for 5.4.4 - 7.3.0rc3
bool(false) bool(false) bool(true) bool(true) bool(false)
Output for 4.3.0 - 5.4.3
bool(true) bool(false) bool(true) bool(true) bool(false)