3v4l.org

run code in 300+ PHP versions simultaneously
<?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); }

preferences:
29.03 ms | 402 KiB | 5 Q