3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'TESTING<html>This is a string</html>ANOTHER TEST!!'; preg_match_all('/(<html>.*<\/html>)/', $str, $matches); print_r($matches[1][0]);

preferences:
36.58 ms | 405 KiB | 5 Q