3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (int) INF; $n = pow(2.,64.); echo $a - ($n * (int) ($a/$n) ),"\n"; // INF but s/b NAN echo fmod(INF,pow(2,64)),"\n"; // NAN correct!
based on RrOCU
Output for 5.3.20 - 5.4.45, 7.0.0 - 7.2.0
0 NAN
Output for 5.5.24 - 5.6.28
-9.2233720368548E+18 NAN