3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "<html><body> <body> </body> </body></html>"; $text = preg_replace('/^.*\<body\>/', '', $text); echo $text;

preferences:
51.3 ms | 402 KiB | 5 Q