3v4l.org

run code in 300+ PHP versions simultaneously
<html> <title>Fearsome Angels</title> <body> <font color="#33CC33 "> <center> <div style="text-align: left;"> <?php $ch = curl_init("http://www.tibia.com/community/?subtopic=guilds&page=view&GuildName=Fearsome+Angels"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); //echo '<pre>'.htmlspecialchars($output).'</pre><hr/>'; preg_match_all('/name=[^"]+">([^><]+)<\/A>/', $output, $matched); $fp = fopen("http://www.tibia.com/community/?subtopic=worlds&world=Refugia","r"); while (feof($fp) != 1) $text= $text.stripslashes(fgets($fp,10000)); str_replace("+", " ", $text); ?> <div id="code"> <h3> <?php $text= $text.stripslashes(fgets($fp,10000)); foreach ($matched[1] as $value){ if (strpos($text, $value) > 1) { $online .= $value. " <b><font color='green'></font></b> <br>"; } } echo $online; ?> </h3> </div> <? fclose($fp); ?> </div> </center> </font> </body> </html>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 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
<html> <title>Fearsome Angels</title> <body> <font color="#33CC33 "> <center> <div style="text-align: left;"> Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/3ApDq:9 Stack trace: #0 {main} thrown in /in/3ApDq on line 9
Process exited with code 255.
Output for 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.24 - 5.5.35, 5.6.8 - 5.6.21
<html> <title>Fearsome Angels</title> <body> <font color="#33CC33 "> <center> <div style="text-align: left;"> Fatal error: Call to undefined function curl_init() in /in/3ApDq on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<html> <title>Fearsome Angels</title> <body> <font color="#33CC33 "> <center> <div style="text-align: left;"> Fatal error: Call to undefined function: curl_init() in /in/3ApDq on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
<html> <title>Fearsome Angels</title> <body> <font color="#33CC33 "> <center> <div style="text-align: left;"> Fatal error: Call to undefined function: curl_init() in /in/3ApDq on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<html> <title>Fearsome Angels</title> <body> <font color="#33CC33 "> <center> <div style="text-align: left;"> Fatal error: Call to undefined function: curl_init() in /in/3ApDq on line 9

preferences:
248.45 ms | 401 KiB | 311 Q