3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (int) INF,"\n"; echo (int) two_pow_64,"\n"; echo ((int) INF) / 2, "\n"; echo ((int) INF) / ((int) two_pow_64);
based on WJXkW
Output for 7.2.0
0 Warning: Use of undefined constant two_pow_64 - assumed 'two_pow_64' (this will throw an Error in a future version of PHP) in /in/cj94Q on line 4 0 0 Warning: Use of undefined constant two_pow_64 - assumed 'two_pow_64' (this will throw an Error in a future version of PHP) in /in/cj94Q on line 6 Warning: Division by zero in /in/cj94Q on line 6 NAN
Output for 7.0.0 - 7.1.10
0 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/cj94Q on line 4 0 0 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/cj94Q on line 6 Warning: Division by zero in /in/cj94Q on line 6 NAN
Output for 5.5.24 - 5.6.28
-9223372036854775808 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/cj94Q on line 4 0 -4611686018427387904 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/cj94Q on line 6 Warning: Division by zero in /in/cj94Q on line 6
Output for 5.3.20 - 5.4.45
0 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/cj94Q on line 4 0 0 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/cj94Q on line 6 Warning: Division by zero in /in/cj94Q on line 6