3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); ?> <!DOCTYPE html> <html> <body> <?php session_start(); $_SESSION["favcolor"] = "green"; $_SESSION["favanimal"] = "cat"; // Echo session variables that were set on previous page echo "Favorite color is " . $_SESSION["favcolor"] . ".<br>"; echo "Favorite animal is " . $_SESSION["favanimal"] . "."; ?> </body> </html>
Output for git.master, git.master_jit
<!DOCTYPE html> <html> <body> Notice: session_start(): Ignoring session_start() because a session is already active in /in/OEorC on line 9 Favorite color is green.<br>Favorite animal is cat. </body> </html>
Output for rfc.property-hooks
<!DOCTYPE html> <html> <body> Notice: session_start(): Ignoring session_start() because a session is already active (started from /in/OEorC on line 2) in /in/OEorC on line 9 Favorite color is green.<br>Favorite animal is cat. </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:
30.6 ms | 401 KiB | 8 Q