Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<?php
function add1() {
  static $number = 0;
  $number++;
  return $number;
}
echo add1();
echo "<br>";
echo add1();
echo "<br>";
echo add1();
?>
</body>
</html>
1
2
3