3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(isset($_POST['addcomment'])) { // echo '#EXTM3U cache=800<br />'; $s = $_POST[comment]; while ($s != "") { $s1 = $s; list($short,$s) = split ("<location>udp://@", $s,2); list($url,$s) = split ("</location>", $s,2); list($short,$s) = split ("<title><!\[CDATA\[", $s,2); list($name,$s) = split ("]]></title>", $s,2); list($short,$s) = split ("<image><!\[CDATA\[", $s,2); list($img,$s) = split ("]]></image>", $s,2); if ($url !== "") // echo 'http://192.168.1.1:8080/udp/'.$url.'<br />'; echo '#EXTINF:-1, '.$name.'<br />udp://@'.$url.'<br />'; } } ?> <form method="post"> <textarea id="comment" name="comment" style="width: 100%; height: 150px; font-size: 1em;"></textarea> <input name="addcomment" type="submit" value="Отправить" style="margin-top:1em; margin-left:2em"> </form>
Output for 4.3.0 - 7.1.0
<form method="post"> <textarea id="comment" name="comment" style="width: 100%; height: 150px; font-size: 1em;"></textarea> <input name="addcomment" type="submit" value="Отправить" style="margin-top:1em; margin-left:2em"> </form>