3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_content = '<p>As big a threat as ISIS is, the competition that truly defines the Middle East is the one between Saudi Arabia and Iran. Where do we fit in?<br clear="all"></p>'; $_content = trim(preg_replace(array('#<p[^>]*>#i', '#</p>#i', '#<br[^>]*>#i','#</br>#i'), '', $_content)); echo $_content; if(stripos($_content, '<img ') === false) { echo "\nNO IMG"; } else { echo "\nIMG"; }
based on X20ak
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
As big a threat as ISIS is, the competition that truly defines the Middle East is the one between Saudi Arabia and Iran. Where do we fit in? NO IMG
Output for 4.4.5 - 4.4.9
As big a threat as ISIS is, the competition that truly defines the Middle East is the one between Saudi Arabia and Iran. Where do we fit in? Fatal error: Call to undefined function: stripos() in /in/RPt5g on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
As big a threat as ISIS is, the competition that truly defines the Middle East is the one between Saudi Arabia and Iran. Where do we fit in? Fatal error: Call to undefined function: stripos() in /in/RPt5g on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
As big a threat as ISIS is, the competition that truly defines the Middle East is the one between Saudi Arabia and Iran. Where do we fit in? Fatal error: Call to undefined function: stripos() in /in/RPt5g on line 6