3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Pick a version of PHP, then try to predict this output. var_dump( 9223372036854775801 == 9223372036854775809); var_dump( '9223372036854775801' == '9223372036854775809'); var_dump( '=' + '9223372036854775801' == '=' + '9223372036854775809'); var_dump( '=' . '9223372036854775801' == '=' . '9223372036854775809'); ?>
Output for 7.1.0 - 7.2.0
bool(true) bool(false) Warning: A non-numeric value encountered in /in/kqMPi on line 9 Warning: A non-numeric value encountered in /in/kqMPi on line 9 bool(true) bool(false)
Output for 5.4.4 - 7.0.20
bool(true) bool(false) bool(true) bool(false)
Output for 4.3.0 - 5.4.3
bool(true) bool(true) bool(true) bool(false)