@ 2017-02-18T00:53:55Z <?php
function floatEquals(float $a, float $b):bool{
if ($a===0.0 || $b ===0.0){
return true;
}else{
return false;
}
}
$number = 0;
$number2 = 1448;
floatEquals($number, $number2);
if($number !== 0.0){
$ratio = $x/$number;
}
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.19 , 8.3.0 - 8.3.7 Warning: Undefined variable $x in /in/WkNnP on line 17
Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/WkNnP:17
Stack trace:
#0 {main}
thrown in /in/WkNnP on line 17
Process exited with code 255 . Output for 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.31 , 7.4.0 - 7.4.33 Notice: Undefined variable: x in /in/WkNnP on line 17
Warning: Division by zero in /in/WkNnP on line 17
Output for 7.3.32 - 7.3.33 Warning: Division by zero in /in/WkNnP on line 17
Output for 5.6.0 - 5.6.40 Parse error: syntax error, unexpected ':', expecting '{' in /in/WkNnP on line 3
Process exited with code 255 . preferences:dark mode live preview
249.6 ms | 401 KiB | 293 Q