3v4l.org

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

Process exited with code 153.
Output for 4.3.0 - 5.4.3
bool(true) bool(true) bool(true) bool(false)