3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo PHP_INT_SIZE,"\n"; echo PHP_INT_MAX,"\n"; var_dump(0xffffffffffffffff); printf("%u\n",0xffffffffffffffff); printf("%d",0xffffffffffffffff);
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
8 9223372036854775807 float(1.844674407371E+19) 0 0
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.1, 5.0.3 - 5.0.4
Notice: Use of undefined constant PHP_INT_SIZE - assumed 'PHP_INT_SIZE' in /in/kWd97 on line 2 PHP_INT_SIZE Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/kWd97 on line 3 PHP_INT_MAX float(1.844674407371E+19) 0 0
Output for 5.0.2
Notice: Use of undefined constant PHP_INT_SIZE - assumed 'PHP_INT_SIZE' in /in/kWd97 on line 2 PHP_INT_SIZE Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/kWd97 on line 3 PHP_INT_MAX float(1.844674407371E+19) 4294967295 9223372036854775807