3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt=" gopu.phaneendra"; echo"hellp"; function add() { $x=20; $y=15; $z=$x+$y; echo $z; ++$z; echo " "; } function sub() { $x=20; $y=14; $z=$x-$y; echo $z; $z--; echo " "; } function mul() { $x=20; $y=15; $z=20*15; echo $z; echo " "; } function mod() { $x=200; $y=20; $z=$x%$y; echo $x; echo $z; echo " "; } function div() { $x=20; $y=2; $z=$x/$y; echo $z; echo " "; } add(); add(); sub(); sub(); mul(); mod(); div(); function stop() { $txt="cheating"; $x=100; $find="strength"; } stop(); echo $txt; echo $x; echo $find;
Output for git.master, git.master_jit, rfc.property-hooks
hellp35 35 6 6 300 2000 10 gopu.phaneendra Warning: Undefined variable $x in /in/9ocXr on line 63 Warning: Undefined variable $find in /in/9ocXr on line 64

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
32.69 ms | 401 KiB | 8 Q