3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "Php max int: ", PHP_INT_MAX, "\n"; var_dump(-1580033017 + -2072974554); echo "Intval of the val: ".intval(round(-3653007571))."\n"; echo "And 0xffffffff of the val: ".(-3653007571 & 0xffffffff)."\n";
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
Php max int: 9223372036854775807 int(-3653007571) Intval of the val: -3653007571 And 0xffffffff of the val: 641959725
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
Php max int: Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/6sFac on line 3 PHP_INT_MAX int(-3653007571) Intval of the val: -3653007571 And 0xffffffff of the val: 641959725