3v4l.org

run code in 300+ PHP versions simultaneously
<?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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<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>

preferences:
280.23 ms | 406 KiB | 424 Q