fork download
  1. <?php
  2. $year=2036;
  3. if($year%400==0 || ($year%100!=0 && $year%4==0))
  4. echo $year.' is Leap Year';
  5. else echo $year.' is Not a Leap Year';
  6. ?>
  7.  
Success #stdin #stdout 0.02s 25832KB
stdin
<?php
$year=2036;
if($year%400==0 || ($year%100!=0 && $year%4==0))
echo $year.' is Leap Year';
else echo $year.' is Not a Leap Year';
?>
stdout
2036 is Leap Year