3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <link rel="stylesheet" href="/html_5/tags/html_link_tag_example.css"> HTML; $el = 'li'; var_export(preg_match('/(<'.$el.'(.*?)>)((\n*?.*?\n*?)<\/'.$el.'>|)/', $html, $out) ? $out : []);

preferences:
55.78 ms | 402 KiB | 5 Q