3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? if(eregi("admin",$_GET[id])) { echo("<p>not allowed!</p>"); exit(); } $_GET[id] = urldecode($_GET[id]); if($_GET[id] == "admin") { echo "<p>Access granted!</p>"; echo "<p>Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx </p>"; } ?> <br><br> Can you authenticate to this website? <!-- source: index.phps -->
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function eregi() in /in/ea3PM:2 Stack trace: #0 {main} thrown in /in/ea3PM on line 2
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Notice: Use of undefined constant id - assumed 'id' in /in/ea3PM on line 2 Notice: Undefined index: id in /in/ea3PM on line 2 Deprecated: Function eregi() is deprecated in /in/ea3PM on line 2 Notice: Use of undefined constant id - assumed 'id' in /in/ea3PM on line 7 Notice: Use of undefined constant id - assumed 'id' in /in/ea3PM on line 7 Notice: Undefined index: id in /in/ea3PM on line 7 Notice: Use of undefined constant id - assumed 'id' in /in/ea3PM on line 8 <br><br> Can you authenticate to this website? <!-- source: index.phps -->
Output for 4.3.0 - 5.3.29
<? if(eregi("admin",$_GET[id])) { echo("<p>not allowed!</p>"); exit(); } $_GET[id] = urldecode($_GET[id]); if($_GET[id] == "admin") { echo "<p>Access granted!</p>"; echo "<p>Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx </p>"; } ?> <br><br> Can you authenticate to this website? <!-- source: index.phps -->