3v4l.org

run code in 300+ PHP versions simultaneously
<?php output_add_rewrite_var('PHPSESSID', '7siuuuk98ns2lps0v1v251f1k3'); ini_set('url_rewriter.tags', 'a=href'); echo json_encode('<a href="/test">test</a>');
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.30, 8.0.0 - 8.0.23, 8.1.0 - 8.1.10
"<a href=\?PHPSESSID=7siuuuk98ns2lps0v1v251f1k3"\/test\">test<\/a>"

preferences:
65 ms | 409 KiB | 5 Q