3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $html = '<!DOCTYPE html><html><head><title>Stuff</title><body><p>Stuff</p></body></html>'; echo preg_replace('/^.*<body>|<\/body>.*$/i', '', $html);
based on sLRkh
Output for 4.3.0 - 7.2.0
<p>Stuff</p>