3v4l.org

run code in 150+ 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
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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
bool(false) bool(true) bool(false)
Output for 4.3.0 - 5.4.3
bool(true) bool(true) bool(false)