3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "some html More <Head> Something <title>Example.com</title> </Head> Foo bar"; $pos = stripos($html, "<title>")+7; echo substr($html, $pos, stripos($html, "</title>")-$pos);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
160.5 ms | 2339 KiB | 12 Q