3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(-1 - PHP_INT_MAX, - PHP_INT_MAX);
based on ObLUO
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.2.0
int(-9223372036854775808) int(-9223372036854775807)
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/IVUVR on line 3 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/IVUVR on line 3 int(-1) int(0)