3v4l.org

run code in 300+ PHP versions simultaneously
<?php $antiblock_message = 'Please disable your ad blocker!<br>Bitte deaktiviere Deinen Werbeblocker!'; $antiblock_layer_id = chr(98 + mt_rand(0,24)).substr(md5(time()), 0, 3); $antiblock_html_elements = array (0 => 'div', 1 => 'span', 2 => 'b', 3 => 'i', 4 => 'font', 5 => 'strong', 6 => 'center'); $antiblock_html_element = $antiblock_html_elements[array_rand($antiblock_html_elements)]; ?> <style> # echo $antiblock_layer_id; { position: fixed !important; position: absolute; top: echo mt_rand(-3, 3); px; top: expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop: document.body.scrollTop)+"px"); left: echo mt_rand(-3, 3); px; width: echo mt_rand(98, 103); %; height: echo mt_rand(98, 103); %; background-color: #fff; opacity: .95; filter: alpha(opacity=95); display: block; padding: 20% 0 } # echo $antiblock_layer_id; * { text-align: center; margin: 0 auto; display: block; filter: none; font: bold 14px Verdana, Arial, sans-serif; text-decoration: none } # echo $antiblock_layer_id; ~ * { display: none } </style> <script> (function (l, m) { function n(a) { a && php echo $antiblock_layer_id; .nextFunction() } var f = l.document, p = ["s"]; n.prototype = { rand: function (a) { return Math.floor(Math.random() * a) }, getElementBy: function (a, b) { return a ? f.getElementById(a) : f.getElementsByTagName(b) }, getStyle: function (a) { var b = f.defaultView; return b && b.getComputedStyle ? b.getComputedStyle(a, null) : a.currentStyle }, deferExecution: function (a) { setTimeout(a, 250) }, insert: function (a, b) { var d = f.createElement(" echo $antiblock_html_element; "), e = f.body, g = e.childNodes.length, h = e.style, c = 0, k = 0; if (" echo $antiblock_layer_id; " == b) { d.setAttribute("id", b); h.margin = h.padding = 0; h.height = "100%"; for (g = this.rand(g); c < g; c++) 1 == e.childNodes[c].nodeType && (k = Math.max(k, parseFloat(this.getStyle(e.childNodes[c]) .zIndex) || 0)); k && (d.style.zIndex = k + 1); g++ } d.innerHTML = a; e.insertBefore(d, e.childNodes[g - 1]) }, displayMessage: function (a) { var b = this; a = "abisuq".charAt(b.rand(5)); b.insert(" echo $antiblock_message; "), " echo $antiblock_layer_id; "); f.addEventListener && b.deferExecution(function () { b.getElementBy(" echo $antiblock_layer_id; ") .addEventListener("DOMNodeRemoved", function () { b.displayMessage() }, !1) }) }, displayMessage: function (a) { a = "abisuq".charAt(this.rand(5)); var b, c = '<input type="button" onclick=" echo $antiblock_layer_id; .r(' echo $antiblock_layer_id; ')" value=5 disabled></' + a + ">"; this.insert(" echo $antiblock_message; " + c, " echo $antiblock_layer_id; "); c = this.getElementBy(" echo $antiblock_layer_id; ") .firstChild.lastChild; b = setInterval(function () { c.value--; 1 > c.value && (clearInterval(b), c.value = "Close", c.disabled = "") }, 1E3) }, s: function () { var a = { 'pagead2.googlesyndic': 'google_ad_client' }, b = this, d = b.getElementBy(0, "script"), e = d.length - 1, g, h, c, k; f.write = null; for (f.writeln = null; 0 <= e; --e) if (g = d[e].src.substr(7, 20), a[g] !== m) { c = f.createElement("script"); c.type = "text/javascript"; c.src = d[e].src; h = a[g]; l[h] = m; c.onload = c.onreadystatechange = function () { k = this; l[h] !== m || k.readyState && "loaded" !== k.readyState && "complete" !== k.readyState || (l[h] = c.onload = c.onreadystatechange = null, d[0].parentNode.removeChild(c)) }; d[0].parentNode.insertBefore(c, d[0]); b.deferExecution(function () { if (l[h] === m) return b.displayMessage(c.src); b.nextFunction() }); return } b.nextFunction() }, nextFunction: function () { var a = p[0]; a !== m && (p.shift(), this[a]()) } }; l. php echo $antiblock_layer_id; = php echo $antiblock_layer_id; = new n; f.addEventListener ? l.addEventListener("load", n, !1) : l.attachEvent("onload", n) })(window); </script>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 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.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
<style> # echo $antiblock_layer_id; { position: fixed !important; position: absolute; top: echo mt_rand(-3, 3); px; top: expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop: document.body.scrollTop)+"px"); left: echo mt_rand(-3, 3); px; width: echo mt_rand(98, 103); %; height: echo mt_rand(98, 103); %; background-color: #fff; opacity: .95; filter: alpha(opacity=95); display: block; padding: 20% 0 } # echo $antiblock_layer_id; * { text-align: center; margin: 0 auto; display: block; filter: none; font: bold 14px Verdana, Arial, sans-serif; text-decoration: none } # echo $antiblock_layer_id; ~ * { display: none } </style> <script> (function (l, m) { function n(a) { a && php echo $antiblock_layer_id; .nextFunction() } var f = l.document, p = ["s"]; n.prototype = { rand: function (a) { return Math.floor(Math.random() * a) }, getElementBy: function (a, b) { return a ? f.getElementById(a) : f.getElementsByTagName(b) }, getStyle: function (a) { var b = f.defaultView; return b && b.getComputedStyle ? b.getComputedStyle(a, null) : a.currentStyle }, deferExecution: function (a) { setTimeout(a, 250) }, insert: function (a, b) { var d = f.createElement(" echo $antiblock_html_element; "), e = f.body, g = e.childNodes.length, h = e.style, c = 0, k = 0; if (" echo $antiblock_layer_id; " == b) { d.setAttribute("id", b); h.margin = h.padding = 0; h.height = "100%"; for (g = this.rand(g); c < g; c++) 1 == e.childNodes[c].nodeType && (k = Math.max(k, parseFloat(this.getStyle(e.childNodes[c]) .zIndex) || 0)); k && (d.style.zIndex = k + 1); g++ } d.innerHTML = a; e.insertBefore(d, e.childNodes[g - 1]) }, displayMessage: function (a) { var b = this; a = "abisuq".charAt(b.rand(5)); b.insert(" echo $antiblock_message; "), " echo $antiblock_layer_id; "); f.addEventListener && b.deferExecution(function () { b.getElementBy(" echo $antiblock_layer_id; ") .addEventListener("DOMNodeRemoved", function () { b.displayMessage() }, !1) }) }, displayMessage: function (a) { a = "abisuq".charAt(this.rand(5)); var b, c = '<input type="button" onclick=" echo $antiblock_layer_id; .r(' echo $antiblock_layer_id; ')" value=5 disabled></' + a + ">"; this.insert(" echo $antiblock_message; " + c, " echo $antiblock_layer_id; "); c = this.getElementBy(" echo $antiblock_layer_id; ") .firstChild.lastChild; b = setInterval(function () { c.value--; 1 > c.value && (clearInterval(b), c.value = "Close", c.disabled = "") }, 1E3) }, s: function () { var a = { 'pagead2.googlesyndic': 'google_ad_client' }, b = this, d = b.getElementBy(0, "script"), e = d.length - 1, g, h, c, k; f.write = null; for (f.writeln = null; 0 <= e; --e) if (g = d[e].src.substr(7, 20), a[g] !== m) { c = f.createElement("script"); c.type = "text/javascript"; c.src = d[e].src; h = a[g]; l[h] = m; c.onload = c.onreadystatechange = function () { k = this; l[h] !== m || k.readyState && "loaded" !== k.readyState && "complete" !== k.readyState || (l[h] = c.onload = c.onreadystatechange = null, d[0].parentNode.removeChild(c)) }; d[0].parentNode.insertBefore(c, d[0]); b.deferExecution(function () { if (l[h] === m) return b.displayMessage(c.src); b.nextFunction() }); return } b.nextFunction() }, nextFunction: function () { var a = p[0]; a !== m && (p.shift(), this[a]()) } }; l. php echo $antiblock_layer_id; = php echo $antiblock_layer_id; = new n; f.addEventListener ? l.addEventListener("load", n, !1) : l.attachEvent("onload", n) })(window); </script>

preferences:
302.07 ms | 416 KiB | 322 Q