<?php $a = 15; $b = 27; // Swap Logic echo "\nThe number before swapping is:\n"; echo "Number a =".$a." and b=".$b; $temp = $a; $a = $b; $b = $temp; echo "\nThe number after swapping is: \n"; echo "Number a =".$a." and b=".$b."\n"; ?>
Write PHP Online is an online code editor which helps you to write and test run/execute your php code online from your browser. This is one of the simple and powerfull online php code editor tool available on the internet.
Write PHP Online supports all PHP functionalities and it runs using PHP version 7. If you want us to provide more PHP versions then please send us your thoughts on this.
We have disabled some of potentially unwanted PHP powered shell functions executing from this site for security reasons.
We do not track your IP address or save any cookies, also we do not save any information about the code you run and your personal details.
Thank you for using this tool, keep visiting and happy coding.
© 2018 - 2020 Elevenstech Web Tutorials. All rights reserved.