3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 5.3.0 - 7.1.0
Notice: Undefined index: url in /in/SjQTL on line 4 Notice: Undefined index: url in /in/SjQTL on line 7 Notice: Undefined variable: transparency in /in/SjQTL on line 7
Output for 5.0.4 - 5.2.17
Notice: Undefined index: url in /in/SjQTL on line 4 Notice: Undefined index: url in /in/SjQTL on line 7 Notice: Undefined variable: transparency in /in/SjQTL on line 7
Output for 4.3.0 - 5.0.3
Notice: Undefined index: url in /in/SjQTL on line 4 Notice: Undefined index: url in /in/SjQTL on line 7 Notice: Undefined variable: transparency in /in/SjQTL on line 7