3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $two_pow_64 = pow(2.,64.); echo "(int) INF: ",(int) INF,"\n"; echo "(int) \$two_pow64: ", (int) $two_pow_64,"\n";
based on 44XA9
Output for 4.3.6 - 5.0.1, 5.0.3 - 5.4.45, 7.0.0 - 7.2.0
(int) INF: 0 (int) $two_pow64: 0
Output for 5.5.24 - 5.6.28
(int) INF: -9223372036854775808 (int) $two_pow64: 0
Output for 5.0.2
(int) INF: 9223372036854775807 (int) $two_pow64: 9223372036854775807
Output for 4.3.0 - 4.3.5
(int) INF: Notice: Use of undefined constant INF - assumed 'INF' in /in/ZUFYh on line 4 0 (int) $two_pow64: 0