3v4l.org

run code in 200+ PHP versions simultaneously
<?php ini_set('session.use_cookies', '0'); ini_set('session.use_only_cookies',0); ini_set('session.use_trans_sid',1); session_id('sessionidhere'); session_start(); ?> <p><a href="index.php">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p><a href="index.php#place">External link with anchor</a></p>
Output for 5.2.3 - 7.0.31, 7.1.9 - 7.1.33, 7.2.6 - 7.4.0
<p><a href="index.php?PHPSESSID=sessionidhere">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p><a href="index.php?PHPSESSID=sessionidhere#place">External link with anchor</a></p>
Output for 7.1.0 - 7.1.8, 7.2.0 - 7.2.5
<p><a href="index.php?PHPSESSID=sessionidhere">Click This Anchor Tag!</a></p> <p><a href="#place/?PHPSESSID=sessionidhere">Internal link</a></p> <p><a href="index.php?PHPSESSID=sessionidhere#place">External link with anchor</a></p>
Output for 5.0.0 - 5.2.2
Warning: session_start(): Cannot send session cache limiter - headers already sent in /in/U96sK on line 6 <p><a href="index.php?PHPSESSID=sessionidhere">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p><a href="index.php?PHPSESSID=sessionidhere#place">External link with anchor</a></p>
Output for 4.3.2 - 4.4.9
Warning: session_start(): Cannot send session cache limiter - headers already sent in /in/U96sK on line 6 <p><a href="index.php">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p><a href="index.php#place">External link with anchor</a></p>
Output for 4.3.0 - 4.3.1
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent in /in/U96sK on line 6 <p><a href="index.php">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p><a href="index.php#place">External link with anchor</a></p>