3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( (PHP_INT_MAX - 1) / 2, PHP_INT_MAX >> 1, ((PHP_INT_MAX - 1) / 2) === PHP_INT_MAX >> 1 );
based on 27Mt2
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.3.1
int(4611686018427387903) int(4611686018427387903) bool(true)
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/5smmk on line 4 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/5smmk on line 5 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/5smmk on line 6 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/5smmk on line 6 float(-0.5) int(0) bool(false)