3v4l.org

run code in 300+ PHP versions simultaneously
<html><head><style type="text/css">body{font-family:tahoma}</style></head><body><div class="doc"> <?php $base = "http://codex.wordpress.org"; $url = "http://codex.wordpress.org/New_To_WordPress_-_Where_to_Start"; $data = file_get_contents($url); # relink relative links to point to the same external site # $data = preg_replace("#(<a[^>]+href=[\"']?)(/[^/][^\s'\">]+[\"']?)([^>]*>)#", "\$1$base\$2 target='_blank'\$3", $data); # fetch images with relative path from the external site # $data = preg_replace("#(<\w+[^>]+src=[\"']?)(/[^/][^\s'\">]+[\"']?)([^>]*>)#", "\$1$base\$2 \$3", $data); # disable stylesheets (if needed) $data = preg_replace("#<link[^>]+rel=[\"']?stylesheet[^>]+>\s*(</link>)?#", "", $data); $data = preg_replace("#(<meta[^>]*google-site-verification[\w\W\r\n]*)<h2>(<span.*id=\"Step_Four[^>]+>)#", "<h1>$2", $data); $data = preg_replace("#(<h2><span[^>]+Advanced_Use_of_WordPress[\w\W\r\n]*script>)#", "", $data); echo $data; ?></div></body></html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WKk5P
function name:  (null)
number of ops:  9
compiled vars:  !0 = $base, !1 = $url, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%3Chead%3E%3Cstyle+type%3D%22text%2Fcss%22%3Ebody%7Bfont-family%3Atahoma%7D%3C%2Fstyle%3E%3C%2Fhead%3E%3Cbody%3E%3Cdiv+class%3D%22doc%22%3E++++'
          1        ASSIGN                                                   !0, 'http%3A%2F%2Fcodex.wordpress.org'
          2        ASSIGN                                                   !1, 'http%3A%2F%2Fcodex.wordpress.org%2FNew_To_WordPress_-_Where_to_Start'
          3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
          7        ECHO                                                     '%3C%2Fdiv%3E%3C%2Fbody%3E%3C%2Fhtml%3E'
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.35 ms | 1385 KiB | 15 Q