3v4l.org

run code in 300+ PHP versions simultaneously
<?php //pretty url hack $pageid = ''; if (preg_match("/transparency\/[^0-9]+/", $_GET['url'])) { list($transparency, $pageid) = explode("/", $_GET['url']); } if ($_GET['url'] == 'transparency' or $transparency == 'transparency'){ echo $pageid; $link = mysqli_connect("localhost","***","********","******"); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } ?> <html> <head><title>It Works</title></head> <body><p>It Works</p></body> </html> <?php } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "url" in /in/SjQTL on line 4 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/SjQTL on line 4 Warning: Undefined array key "url" in /in/SjQTL on line 7 Warning: Undefined variable $transparency in /in/SjQTL on line 7

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