3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $t; function myCalculations () { $x=22; echo "<p>Test variable oustide of function:</p>"; echo "variable x is: $x"; echo "<br>"; echo "variable t is: $t"; }// Code will only display x myCalculations(); echo "<p>Test variable inside of function:</p>"; echo "variable x is: $x"; echo "<br>"; echo "variable t is: $t"; ?>//Code will only display t </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html> <html> <body> <p>Test variable oustide of function:</p>variable x is: 22<br> Warning: Undefined variable $t in /in/Q3FVV on line 11 variable t is: <p>Test variable inside of function:</p> Warning: Undefined variable $x in /in/Q3FVV on line 15 variable x is: <br> Warning: Undefined variable $t in /in/Q3FVV on line 17 variable t is: //Code will only display t </body> </html>

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:
35.66 ms | 402 KiB | 8 Q