PHP Online Compiler
Example: PHP program to the sum of two integers
C
C++
C#
Java
Python
PHP
main.php
STDIN
Run
<?php // PHP program to the sum of two integers $p = 5; $q = 7; $r = $p + $q; echo "\nResult:: " . $p . " + " . $q . " = " . $r; ?>
Output
Clear
ADVERTISEMENTS