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( 9223372036854775807 == 9223372036854775808); var_dump( '9223372036854775807' == '9223372036854775808'); var_dump( '=' + '9223372036854775807' == '=' + '9223372036854775808'); var_dump( '=' . '9223372036854775807' == '=' . '9223372036854775808'); ?>
Output for 7.1.0 - 7.1.10
bool(true) bool(false) Warning: A non-numeric value encountered in /in/klZl1 on line 9 Warning: A non-numeric value encountered in /in/klZl1 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)