3v4l.org

run code in 300+ PHP versions simultaneously
<!-- Sedo Code --> <?php # Script for displaying the topdomains # file with list of topdomains from Sedo $filecontent = file ("http://www.sedo.com/txt/topdomains_us.txt"); $x =0; $topdomains = array(); while(list($line) = each($filecontent)) { $topdomains [$x][0] = substr($filecontent[$x],0,strpos($filecontent[$x],'~')); $topdomains [$x][1] = substr($filecontent[$x], strpos($filecontent[$x],'~')+1, (strlen($filecontent[$x])-strpos($filecontent[$x],'~')-3) ); $x++; } # Displaying the domains & prices as table echo '<table border="0" cellpadding="2" cellspacing="0">'; echo '<tr><td bgcolor="#e0e8ef"><span style="font-size:11px; font-weight:bold;"> TOP domains for sale</span></td></tr>'; for ($i=0;$i<10;$i++) { ?> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain=<? echo $topdomains[$i][0];?>" target="_blank"> <span style="font-size:10px; font-weight:bold;"> <? echo $topdomains[$i][0]; ?></span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> <? echo $topdomains[$i][1]; ?></span></td></tr> <?} echo '</table>'; ?> <!-- Sedo Code Ende -->

preferences:
45.32 ms | 402 KiB | 5 Q