fork download
  1. <?php
  2.  
  3. function increment(int $x): int
  4. {
  5. return $x + 1;
  6. }
  7.  
  8. echo increment('1');
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
2