3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!-- 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 -->
Output for 5.4.34 - 5.4.38, 5.5.24 - 5.5.31, 5.5.34 - 5.6.17, 5.6.20 - 5.6.21, 7.0.0 - 7.0.3, 7.0.5 - 7.1.0
<!-- Sedo Code --> Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/83g00 on line 7 Warning: file(http://www.sedo.com/txt/topdomains_us.txt): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/83g00 on line 7 Warning: Variable passed to each() is not an array or object in /in/83g00 on line 12 <table border="0" cellpadding="2" cellspacing="0"><tr><td bgcolor="#e0e8ef"><span style="font-size:11px; font-weight:bold;"> TOP domains for sale</span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 0 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 0 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 0 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 1 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 1 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 1 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 2 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 2 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 2 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 3 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 3 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 3 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 4 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 4 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 4 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 5 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 5 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 5 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 6 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 6 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 6 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 7 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 7 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 7 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 8 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 8 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 8 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 9 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 9 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 9 in /in/83g00 on line 30 </span></td></tr> </table> <!-- Sedo Code Ende -->
Output for 5.4.39 - 5.4.45, 5.5.32 - 5.5.33, 5.6.18 - 5.6.19, 7.0.4
<!-- Sedo Code --> Warning: file(): php_network_getaddresses: getaddrinfo failed: System error in /in/83g00 on line 7 Warning: file(http://www.sedo.com/txt/topdomains_us.txt): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/83g00 on line 7 Warning: Variable passed to each() is not an array or object in /in/83g00 on line 12 <table border="0" cellpadding="2" cellspacing="0"><tr><td bgcolor="#e0e8ef"><span style="font-size:11px; font-weight:bold;"> TOP domains for sale</span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 0 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 0 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 0 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 1 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 1 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 1 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 2 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 2 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 2 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 3 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 3 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 3 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 4 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 4 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 4 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 5 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 5 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 5 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 6 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 6 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 6 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 7 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 7 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 7 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 8 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 8 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 8 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined offset: 9 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined offset: 9 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined offset: 9 in /in/83g00 on line 30 </span></td></tr> </table> <!-- Sedo Code Ende -->
Output for hhvm-3.10.0 - 3.12.0
<!-- Sedo Code --> Warning: Failed to open http://www.sedo.com/txt/topdomains_us.txt (Could not resolve host: www.sedo.com) in /in/83g00 on line 7 Warning: Invalid operand type was used: expecting an array in /in/83g00 on line 12 <table border="0" cellpadding="2" cellspacing="0"><tr><td bgcolor="#e0e8ef"><span style="font-size:11px; font-weight:bold;"> TOP domains for sale</span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined index: 0 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined index: 0 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined index: 0 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined index: 1 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined index: 1 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined index: 1 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined index: 2 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined index: 2 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined index: 2 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined index: 3 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined index: 3 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> Notice: Undefined index: 3 in /in/83g00 on line 30 </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain= Notice: Undefined index: 4 in /in/83g00 on line 26 " target="_blank"> <span style="font-size:10px; font-weight:bold;"> Notice: Undefined index: 4 in /in/83g00 on line 28 </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain=" target="_blank"> <span style="font-size:10px; font-weight:bold;"> </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain=" target="_blank"> <span style="font-size:10px; font-weight:bold;"> </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain=" target="_blank"> <span style="font-size:10px; font-weight:bold;"> </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain=" target="_blank"> <span style="font-size:10px; font-weight:bold;"> </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> </span></td></tr> <tr><td bgcolor="#f0f0f0"><a href="http://www.sedo.com/search/details.php4?partnerid=316444&language=us&domain=" target="_blank"> <span style="font-size:10px; font-weight:bold;"> </span></a></td></tr> <tr><td bgcolor="#ffffff"><span style="font-size:8px"> </span></td></tr> </table> <!-- Sedo Code Ende -->
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected end of file in /in/83g00 on line 35
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/83g00 on line 35
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected $ in /in/83g00 on line 35
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/83g00 on line 35
Process exited with code 255.