fork download
  1. <?php
  2.  
  3. if(6/5 === 1.2){
  4. echo "true 1\n";
  5. }
  6.  
  7. if(2-0.8 === 1+1.2){
  8. echo "true 2\n";
  9. }
  10.  
  11. if(abs(6/5-1.2) < 0.0001){
  12. echo "true 3\n";
  13. }
  14.  
  15. if(1.2 === 1.2){
  16. echo "true 4\n";
  17. }
  18.  
  19. if(0.0001 > abs(6/5-1.2)){
  20. echo "true 5\n";
  21. }
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
true 1
true 3
true 4
true 5