3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) { ?> <h3>strpos() must have returned non-false</h3> <p>You are using Internet Explorer</p> <?php } else { ?> <h3>strpos() must have returned false</h3> <p>You are not using Internet Explorer</p> <?php } ?>
based on kuLmD
Output for 5.3.0 - 7.1.0
Notice: Undefined index: HTTP_USER_AGENT in /in/7O3R1 on line 2 <h3>strpos() must have returned false</h3> <p>You are not using Internet Explorer</p>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: HTTP_USER_AGENT in /in/7O3R1 on line 2 <h3>strpos() must have returned false</h3> <p>You are not using Internet Explorer</p>