<?php
$_content = 'أنـــــونيموس - Anonymous Rasd';
function unescape($str) {
$str = rawurldecode($str);
preg_match_all("/(?:%u.{4})|&#x.{4};|&#\d+;|.+/U",$str,$r);
$ar = $r[0];
print_r($ar);
foreach($ar as $k=>$v) {
if(substr($v,0,2) == "%u")
$ar[$k] = iconv("UCS-2","UTF-8",pack("H4",substr($v,-4)));
elseif(substr($v,0,3) == "&#x")
$ar[$k] = iconv("UCS-2","UTF-8",pack("H4",substr($v,3,-1)));
elseif(substr($v,0,2) == "&#") {
echo substr($v,2,-1)."<br>";
$ar[$k] = iconv("UCS-2","UTF-8",pack("n",substr($v,2,-1)));
}
}
return join("",$ar);
}
echo unescape($_content);
- 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.33, 7.3.0 - 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.4, 8.3.6
- Array
(
[0] => &
[1] => #
[2] => x
[3] => 6
[4] => 2
[5] => 3
[6] => ;
[7] => &
[8] => #
[9] => x
[10] => 6
[11] => 4
[12] => 6
[13] => ;
[14] => &
[15] => #
[16] => x
[17] => 6
[18] => 4
[19] => 0
[20] => ;
[21] => &
[22] => #
[23] => x
[24] => 6
[25] => 4
[26] => 0
[27] => ;
[28] => &
[29] => #
[30] => x
[31] => 6
[32] => 4
[33] => 0
[34] => ;
[35] => &
[36] => #
[37] => x
[38] => 6
[39] => 4
[40] => 0
[41] => ;
[42] => &
[43] => #
[44] => x
[45] => 6
[46] => 4
[47] => 0
[48] => ;
[49] => &
[50] => #
[51] => x
[52] => 6
[53] => 4
[54] => 8
[55] => ;
[56] => &
[57] => #
[58] => x
[59] => 6
[60] => 4
[61] => 6
[62] => ;
[63] => &
[64] => #
[65] => x
[66] => 6
[67] => 4
[68] => a
[69] => ;
[70] => &
[71] => #
[72] => x
[73] => 6
[74] => 4
[75] => 5
[76] => ;
[77] => &
[78] => #
[79] => x
[80] => 6
[81] => 4
[82] => 8
[83] => ;
[84] => &
[85] => #
[86] => x
[87] => 6
[88] => 3
[89] => 3
[90] => ;
[91] =>
[92] => -
[93] =>
[94] => A
[95] => n
[96] => o
[97] => n
[98] => y
[99] => m
[100] => o
[101] => u
[102] => s
[103] =>
[104] => R
[105] => a
[106] => s
[107] => d
)
أنـــــونيموس - Anonymous Rasd
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Array
(
[0] => &
[1] => #
[2] => x
[3] => 6
[4] => 2
[5] => 3
[6] => ;
[7] => &
[8] => #
[9] => x
[10] => 6
[11] => 4
[12] => 6
[13] => ;
[14] => &
[15] => #
[16] => x
[17] => 6
[18] => 4
[19] => 0
[20] => ;
[21] => &
[22] => #
[23] => x
[24] => 6
[25] => 4
[26] => 0
[27] => ;
[28] => &
[29] => #
[30] => x
[31] => 6
[32] => 4
[33] => 0
[34] => ;
[35] => &
[36] => #
[37] => x
[38] => 6
[39] => 4
[40] => 0
[41] => ;
[42] => &
[43] => #
[44] => x
[45] => 6
[46] => 4
[47] => 0
[48] => ;
[49] => &
[50] => #
[51] => x
[52] => 6
[53] => 4
[54] => 8
[55] => ;
[56] => &
[57] => #
[58] => x
[59] => 6
[60] => 4
[61] => 6
[62] => ;
[63] => &
[64] => #
[65] => x
[66] => 6
[67] => 4
[68] => a
[69] => ;
[70] => &
[71] => #
[72] => x
[73] => 6
[74] => 4
[75] => 5
[76] => ;
[77] => &
[78] => #
[79] => x
[80] => 6
[81] => 4
[82] => 8
[83] => ;
[84] => &
[85] => #
[86] => x
[87] => 6
[88] => 3
[89] => 3
[90] => ;
[91] =>
[92] => -
[93] =>
[94] => A
[95] => n
[96] => o
[97] => n
[98] => y
[99] => m
[100] => o
[101] => u
[102] => s
[103] =>
[104] => R
[105] => a
[106] => s
[107] => d
)
أنـــــونيموس - Anonymous Rasd
preferences:
383.25 ms | 405 KiB | 464 Q