3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: application/xml; charset=utf-8'); //db info $host="localhost"; // Host name $username="mynob"; // username $password="u5"; // password $db_name="my"; // Database name $tbl="sc-urls"; mysql_connect("$host", "$username", "$password"); mysql_select_db("$db_name"); ?> <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <!-- Sitemap SoundCloud Downloader--> <?php $q1=mysql_query("SELECT * FROM `$tbl`"); while($r=mysql_fetch_array($q1)){ $url=$r['url']; echo "<url> <loc>http://www.mynoblecare.com/$url</loc> <changefreq>daily</changefreq> <priority>1.00</priority> </url>"; } ?> </urlset>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/GoB7u:12 Stack trace: #0 {main} thrown in /in/GoB7u on line 12
Process exited with code 255.

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:
38.18 ms | 401 KiB | 8 Q