3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php // Set a cookie named "abc" with value "abc" that expires in 1 hour setcookie("abc", "abc", time() + 3600); // Check if the cookie 'abc' is set and display message accordingly if (isset($_COOKIE['abc'])) { echo "Hello, visiting again! Cookie value: " . $_COOKIE['abc']; } else { echo "Your first visit."; } ?> </body> </html>
Output for git.master_jit, git.master
<!DOCTYPE html> <html> <body> Warning: Cannot modify header information - headers already sent by (output started at /in/vGgJ5:1) in /in/vGgJ5 on line 7 Your first visit. </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:
45.83 ms | 405 KiB | 5 Q