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