3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Predict this output. I doubt you'll get it correct for any version of PHP you are working on. var_dump( '9223372036854775807' == '9223372036854775808'); var_dump( '=' + '9223372036854775807' == '=' + '9223372036854775808'); var_dump( '=' . '9223372036854775807' == '=' . '9223372036854775808'); ?>
Output for 7.1.0 - 7.2.0
bool(false) Warning: A non-numeric value encountered in /in/bvfrH on line 7 Warning: A non-numeric value encountered in /in/bvfrH on line 7 bool(true) bool(false)
Output for 5.4.4 - 7.0.20
bool(false) bool(true) bool(false)
Output for 4.3.0 - 5.4.3
bool(true) bool(true) bool(false)