3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = INF; $n = pow(2,64); echo $a/$n,"\n"; echo $a - ($n * (int) ($a/$n) ),"\n"; echo fmod(INF,pow(2,64)),"\n"; echo INF % pow(2,64);
based on WaPDM
Output for 7.0.0 - 7.2.0
INF INF NAN Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/jMSQT:12 Stack trace: #0 {main} thrown in /in/jMSQT on line 12
Process exited with code 255.
Output for 5.3.20 - 5.6.28
INF INF NAN Warning: Division by zero in /in/jMSQT on line 12