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>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.4.00.0100.01014.85
7.3.120.0090.00615.09
7.3.110.0060.00614.96
7.3.100.0070.01314.78
7.3.90.0030.01314.94
7.3.80.0100.00314.91
7.3.70.0040.00414.84
7.3.60.0110.00414.74
7.3.50.0040.00814.69
7.3.40.0000.01014.81
7.3.30.0070.00714.91
7.3.20.0040.01216.69
7.3.10.0050.00716.75
7.3.00.0070.00716.63
7.2.250.0070.01115.34
7.2.240.0000.01914.93
7.2.230.0070.00715.00
7.2.220.0070.00715.26
7.2.210.0060.00615.17
7.2.200.0000.01515.06
7.2.190.0030.01215.00
7.2.180.0000.01115.23
7.2.170.0000.01214.89
7.2.160.0060.00914.91
7.2.150.0000.01416.85
7.2.140.0060.00316.76
7.2.130.0040.00916.89
7.2.120.0050.01016.85
7.2.110.0080.00816.82
7.2.100.0060.00816.77
7.2.90.0050.01417.03
7.2.80.0090.00916.89
7.2.70.0090.00416.78
7.2.60.0080.00617.01
7.2.50.0090.00516.96
7.2.40.0070.01016.98
7.2.30.0040.01117.05
7.2.20.0010.01316.66
7.2.10.0080.00516.74
7.2.00.0130.00516.68
7.1.330.0120.00615.91
7.1.320.0060.00615.98
7.1.310.0030.01015.83
7.1.300.0070.00715.74
7.1.290.0030.00915.97
7.1.280.0080.00415.78
7.1.270.0000.00915.87
7.1.260.0030.00615.91
7.1.250.0060.00715.83
7.1.240.0080.00615.58
7.1.230.0040.00715.83
7.1.220.0030.01015.64
7.1.210.0080.00615.83
7.1.200.0050.01015.87
7.1.190.0080.00515.79
7.1.180.0080.00715.79
7.1.170.0120.00115.60
7.1.160.0060.00615.74
7.1.150.0050.00715.72
7.1.140.0050.00815.69
7.1.130.0020.01115.63
7.1.120.0050.00915.69
7.1.110.0060.00815.86
7.1.100.0020.01115.56
7.1.90.0070.00315.71
7.1.80.0080.00615.74
7.1.70.0050.00716.26
7.1.60.0080.01117.09
7.1.50.0090.00816.20
7.1.40.0030.01015.68
7.1.30.0050.00915.79
7.1.20.0060.00615.76
7.1.10.0020.01015.67
7.1.00.0010.03318.08
7.0.330.0050.00815.19
7.0.320.0030.00615.28
7.0.310.0050.00615.29
7.0.300.0050.00615.31
7.0.290.0150.00215.23
7.0.280.0070.00515.23
7.0.270.0040.01015.34
7.0.260.0070.00815.32
7.0.250.0070.00515.45
7.0.240.0040.00915.33
7.0.230.0020.01015.32
7.0.220.0060.01015.29
7.0.210.0040.01115.32
7.0.200.0060.00615.77
7.0.190.0080.00515.20
7.0.180.0030.01015.27
7.0.170.0090.00615.32
7.0.160.0050.01015.43
7.0.150.0060.00415.34
7.0.140.0060.02817.51
7.0.130.0070.00715.22
7.0.120.0040.00615.49
7.0.110.0050.00715.33
7.0.100.0090.02116.82
7.0.90.0210.03016.92
7.0.80.0040.02216.78
7.0.70.0060.03316.84
7.0.60.0080.03016.81
7.0.50.0080.02317.04
7.0.40.0080.03015.52
7.0.30.0060.03515.55
7.0.20.0080.03015.44
7.0.10.0080.02915.59
7.0.00.0090.02315.56
5.6.400.0060.00614.62
5.6.390.0030.01214.54
5.6.380.0060.00714.39
5.6.370.0070.00514.20
5.6.360.0030.00814.46
5.6.350.0070.00714.38
5.6.340.0050.00714.48
5.6.330.0020.01314.35
5.6.320.0030.00914.38
5.6.310.0080.00914.55
5.6.300.0050.01014.28
5.6.290.0100.00514.32
5.6.280.0060.02616.44
5.6.270.0070.00414.23
5.6.260.0040.00814.20
5.6.250.0100.01916.49
5.6.240.0080.02816.44
5.6.230.0070.03116.35
5.6.220.0060.02716.60
5.6.210.0060.03016.55
5.6.200.0070.03116.62
5.6.190.0050.03116.68
5.6.180.0110.02216.72
5.6.170.0060.03416.50
5.6.160.0070.02016.66
5.6.150.0030.02416.64
5.6.140.0060.03116.58
5.6.130.0050.03716.65
5.6.120.0080.02716.57
5.6.110.0060.03316.56
5.6.100.0070.02116.69
5.6.90.0070.01816.58
5.6.80.0020.02316.37
5.6.70.0080.02616.13
5.6.60.0070.03216.52
5.6.50.0080.02416.45
5.6.40.0050.02716.40
5.6.30.0080.02916.26
5.6.20.0050.03816.44
5.6.10.0110.01316.36
5.6.00.0110.01916.25
5.5.380.0080.02815.18
5.5.370.0060.03115.27
5.5.360.0110.02115.25
5.5.350.0090.03115.23
5.5.340.0070.02415.46
5.5.330.0050.03215.41
5.5.320.0090.02815.34
5.5.310.0100.02915.30
5.5.300.0050.02615.50
5.5.290.0070.02715.48
5.5.280.0070.02615.32
5.5.270.0080.02415.55
5.5.260.0080.02315.39
5.5.250.0020.03515.26
5.5.240.0040.03115.22
5.5.230.0070.01915.19
5.5.220.0100.02315.13
5.5.210.0100.02315.13
5.5.200.0090.03015.01
5.5.190.0100.03215.08
5.5.180.0060.03215.23
5.5.170.0010.00912.50
5.5.160.0090.01515.04
5.5.150.0090.01615.18
5.5.140.0110.03015.08
5.5.130.0070.02615.08
5.5.120.0020.02215.20
5.5.110.0070.03015.16
5.5.100.0070.03015.10
5.5.90.0060.03015.15
5.5.80.0040.02815.03
5.5.70.0090.01415.25
5.5.60.0030.03415.10
5.5.50.0070.02215.01
5.5.40.0110.02815.17
5.5.30.0060.03014.94
5.5.20.0090.02615.16
5.5.10.0100.02015.16
5.5.00.0060.03114.95
5.4.450.0060.03113.78
5.4.440.0020.03213.48
5.4.430.0060.03013.50
5.4.420.0110.02513.76
5.4.410.0050.02113.65
5.4.400.0060.02013.56
5.4.390.0110.03013.65
5.4.380.0070.02613.65
5.4.370.0130.02013.65
5.4.360.0080.02913.81
5.4.350.0070.01913.61
5.4.340.0050.01913.56
5.4.330.0070.00511.05
5.4.320.0060.01713.77
5.4.310.0050.01913.59
5.4.300.0020.03313.56
5.4.290.0080.02713.71
5.4.280.0060.02813.52
5.4.270.0100.02413.71
5.4.260.0130.02213.54
5.4.250.0080.02713.52
5.4.240.0070.02713.55
5.4.230.0080.01613.66
5.4.220.0030.02313.73
5.4.210.0090.03113.61
5.4.200.0070.02213.70
5.4.190.0070.02713.76
5.4.180.0070.03213.64
5.4.170.0110.02413.59
5.4.160.0080.01413.64
5.4.150.0070.03013.70
5.4.140.0070.02712.79
5.4.130.0060.02912.82
5.4.120.0070.02812.61
5.4.110.0090.02112.82
5.4.100.0070.02712.81
5.4.90.0110.01612.78
5.4.80.0070.02712.68
5.4.70.0090.02612.78
5.4.60.0050.02712.74
5.4.50.0040.01812.74
5.4.40.0080.01612.84
5.4.30.0060.02812.85
5.4.20.0080.02112.77
5.4.10.0030.03012.74
5.4.00.0060.02712.44
5.3.290.0040.01511.90
5.3.280.0060.02311.81
5.3.270.0090.02411.79
5.3.260.0060.02611.79
5.3.250.0020.01711.88
5.3.240.0050.02311.71
5.3.230.0070.02411.73
5.3.220.0060.02011.70
5.3.210.0060.02911.71
5.3.200.0090.01811.80
5.3.190.0010.02811.70
5.3.180.0050.02711.91
5.3.170.0040.02711.84
5.3.160.0050.02311.86
5.3.150.0020.02011.93
5.3.140.0020.02411.76
5.3.130.0060.02811.81
5.3.120.0080.02511.80
5.3.110.0080.02411.77
5.3.100.0090.02511.60
5.3.90.0040.02811.72
5.3.80.0020.02111.58
5.3.70.0040.02611.55
5.3.60.0050.02711.61
5.3.50.0080.02711.54
5.3.40.0070.02311.49
5.3.30.0010.02311.53
5.3.20.0050.01611.48
5.3.10.0010.01911.38
5.3.00.0030.01711.29
5.2.170.0070.02810.31
5.2.160.0050.03310.36
5.2.150.0020.02610.11
5.2.140.0030.02010.27
5.2.130.0000.02110.35
5.2.120.0060.01310.25
5.2.110.0020.02010.21
5.2.100.0030.02010.29
5.2.90.0050.02010.20
5.2.80.0070.01710.11
5.2.70.0070.01710.21
5.2.60.0120.01510.13
5.2.50.0050.01610.17
5.2.40.0010.01810.01
5.2.30.0020.0179.92
5.2.20.0020.01910.04
5.2.10.0060.01210.04
5.2.00.0050.02010.04
5.1.60.0020.0149.10
5.1.50.0020.0169.22
5.1.40.0030.0319.21
5.1.30.0070.0199.57
5.1.20.0030.0159.57
5.1.10.0030.0309.22
5.1.00.0010.0189.34
5.0.50.0030.0118.18
5.0.40.0060.0228.00
5.0.30.0050.0307.99
5.0.20.0050.0107.96
5.0.10.0000.0167.86
5.0.00.0050.0157.96
4.4.90.0030.0107.43
4.4.80.0060.0077.43
4.4.70.0000.0117.43
4.4.60.0030.0127.43
4.4.50.0040.0077.43
4.4.40.0020.0177.43
4.4.30.0020.0177.43
4.4.20.0070.0087.43
4.4.10.0020.0107.43
4.4.00.0050.0137.43
4.3.110.0000.0127.43
4.3.100.0080.0057.43
4.3.90.0000.0127.43
4.3.80.0000.0157.43
4.3.70.0000.0157.43
4.3.60.0030.0107.43
4.3.50.0030.0127.43
4.3.40.0030.0137.43
4.3.30.0000.0157.43
4.3.20.0020.0107.43
4.3.10.0030.0107.43
4.3.00.0000.0117.43

preferences:
37.87 ms | 400 KiB | 5 Q