fork download
  1. <?php
  2.  
  3. print("The PHP Add 2 Numbers Program.\n");
  4. $x = 10;
  5. $y = 10;
  6. $z = ($x + $y);
  7. print("X ".$x." Y ".$y." Z ". $z. "\n");
Success #stdin #stdout 0.02s 26028KB
stdin
1
2
10
42
11
stdout
The PHP Add 2 Numbers Program.
X 10 Y 10 Z 20