3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $html = "<html><body> vdfbsdbg \n </body> \n </html>"; $pos = strpos($html, '</body>'); if ($pos !== false) { $html = substr($html, 0, $pos); $html = $html . '==IMG==' . substr($html, $pos); print_r($html); }
Output for 4.3.0 - 7.1.0
<html><body> vdfbsdbg ==IMG==