3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (int) INFINITY,"\n"; echo (int) two_pow_64,"\n"; echo ((int) INFINITY) / 2, "\n"; echo ((int) INFINITY) / ((int) two_pow_64);
Output for 7.2.0
Warning: Use of undefined constant INFINITY - assumed 'INFINITY' (this will throw an Error in a future version of PHP) in /in/WJXkW on line 3 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/WJXkW on line 4 0 Warning: Use of undefined constant INFINITY - assumed 'INFINITY' (this will throw an Error in a future version of PHP) in /in/WJXkW on line 5 0 Warning: Use of undefined constant INFINITY - assumed 'INFINITY' (this will throw an Error in a future version of PHP) in /in/WJXkW on line 6 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/WJXkW on line 6 Warning: Division by zero in /in/WJXkW on line 6 NAN
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant INFINITY - assumed 'INFINITY' in /in/WJXkW on line 3 0 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/WJXkW on line 4 0 Notice: Use of undefined constant INFINITY - assumed 'INFINITY' in /in/WJXkW on line 5 0 Notice: Use of undefined constant INFINITY - assumed 'INFINITY' in /in/WJXkW on line 6 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/WJXkW on line 6 Warning: Division by zero in /in/WJXkW on line 6 NAN
Output for 5.3.20 - 5.6.28
Notice: Use of undefined constant INFINITY - assumed 'INFINITY' in /in/WJXkW on line 3 0 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/WJXkW on line 4 0 Notice: Use of undefined constant INFINITY - assumed 'INFINITY' in /in/WJXkW on line 5 0 Notice: Use of undefined constant INFINITY - assumed 'INFINITY' in /in/WJXkW on line 6 Notice: Use of undefined constant two_pow_64 - assumed 'two_pow_64' in /in/WJXkW on line 6 Warning: Division by zero in /in/WJXkW on line 6