3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "(int) INF: ", (int) INF,"\n"; echo "PHP_INT_MAX: ",PHP_INT_MAX,"\n"; echo "PHP_INT_MIN: ", ~PHP_INT_MAX;
based on e7hrD
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.4.45, 7.0.0 - 7.2.0
(int) INF: 0 PHP_INT_MAX: 9223372036854775807 PHP_INT_MIN: -9223372036854775808
Output for 5.5.0 - 5.6.28
(int) INF: -9223372036854775808 PHP_INT_MAX: 9223372036854775807 PHP_INT_MIN: -9223372036854775808
Output for 4.3.6 - 4.3.11, 5.0.0 - 5.0.1, 5.0.3 - 5.0.4
(int) INF: 0 PHP_INT_MAX: Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/1I4hQ on line 4 PHP_INT_MAX PHP_INT_MIN: Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/1I4hQ on line 5 �����������
Output for 5.0.2
(int) INF: 9223372036854775807 PHP_INT_MAX: Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/1I4hQ on line 4 PHP_INT_MAX PHP_INT_MIN: Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/1I4hQ on line 5 �����������
Output for 4.3.0 - 4.3.5
(int) INF: Notice: Use of undefined constant INF - assumed 'INF' in /in/1I4hQ on line 3 0 PHP_INT_MAX: Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/1I4hQ on line 4 PHP_INT_MAX PHP_INT_MIN: Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/1I4hQ on line 5 �����������