3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('session.use_cookies', '0'); ini_set('session.use_only_cookies',0); ini_set('session.use_trans_sid',1); ini_set('session.trans_sid_hosts','php.net'); 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="http://php.net/#foo">External link with anchor</a></p>
based on AZbCP
Output for 7.1.10 - 7.1.20, 7.2.6 - 7.3.0rc3
<p><a href="index.php?PHPSESSID=sessionidhere">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p><a href="http://php.net/?PHPSESSID=sessionidhere#foo">External link with anchor</a></p>
Output for 7.1.0 - 7.1.7, 7.2.0
<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="http://php.net/?PHPSESSID=sessionidhere#foo">External link with anchor</a></p>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
<p><a href="index.php?PHPSESSID=sessionidhere">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p><a href="http://php.net/#foo">External link with anchor</a></p>
Output for hhvm-3.15.4
<p><a href="index.php">Click This Anchor Tag!</a></p> <p><a href="#place">Internal link</a></p> <p><a href="http://php.net/#foo">External link with anchor</a></p>