3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $stringHTML= "Software de comunicación"; $html = get_html_translation_table(HTML_ENTITIES, ENT_NOQUOTES | ENT_HTML5, "ISO-8859-1"); unset($html["<"]); unset($html[">"]); $reemplazar = array_keys($html);print_r($reemplazar); $reemplazo = array_values($html);print_r($reemplazo); echo str_replace($reemplazar, $reemplazo, $stringHTML); ?>
based on mHgDi
Output for 5.4.12 - 7.1.0
Array ( [0] => [1] => [2] => ! [3] => # [4] => $ [5] => % [6] => & [7] => ( [8] => ) [9] => * [10] => + [11] => , [12] => . [13] => / [14] => : [15] => ; [16] => <� [17] => = [18] => =� [19] => >� [20] => ? [21] => @ [22] => [ [23] => \ [24] => ] [25] => ^ [26] => _ [27] => ` [28] => fj [29] => { [30] => | [31] => } [32] => � [33] => � [34] => � [35] => � [36] => � [37] => � [38] => � [39] => � [40] => � [41] => � [42] => � [43] => � [44] => � [45] => � [46] => � [47] => � [48] => � [49] => � [50] => � [51] => � [52] => � [53] => � [54] => � [55] => � [56] => � [57] => � [58] => � [59] => � [60] => � [61] => � [62] => � [63] => � [64] => � [65] => � [66] => � [67] => � [68] => � [69] => � [70] => � [71] => � [72] => � [73] => � [74] => � [75] => � [76] => � [77] => � [78] => � [79] => � [80] => � [81] => � [82] => � [83] => � [84] => � [85] => � [86] => � [87] => � [88] => � [89] => � [90] => � [91] => � [92] => � [93] => � [94] => � [95] => � [96] => � [97] => � [98] => � [99] => � [100] => � [101] => � [102] => � [103] => � [104] => � [105] => � [106] => � [107] => � [108] => � [109] => � [110] => � [111] => � [112] => � [113] => � [114] => � [115] => � [116] => � [117] => � [118] => � [119] => � [120] => � [121] => � [122] => � [123] => � [124] => � [125] => � [126] => � [127] => � ) Array ( [0] => &Tab; [1] => &NewLine; [2] => &excl; [3] => &num; [4] => &dollar; [5] => &percnt; [6] => &amp; [7] => &lpar; [8] => &rpar; [9] => &ast; [10] => &plus; [11] => &comma; [12] => &period; [13] => &sol; [14] => &colon; [15] => &semi; [16] => &nvlt [17] => &equals; [18] => &bne [19] => &nvgt [20] => &quest; [21] => &commat; [22] => &lbrack; [23] => &bsol; [24] => &rsqb; [25] => &Hat; [26] => &lowbar; [27] => &grave; [28] => &fjlig [29] => &lbrace; [30] => &vert; [31] => &rcub; [32] => &nbsp; [33] => &iexcl; [34] => &cent; [35] => &pound; [36] => &curren; [37] => &yen; [38] => &brvbar; [39] => &sect; [40] => &DoubleDot; [41] => &copy; [42] => &ordf; [43] => &laquo; [44] => &not; [45] => &shy; [46] => &reg; [47] => &macr; [48] => &deg; [49] => &plusmn; [50] => &sup2; [51] => &sup3; [52] => &DiacriticalAcute; [53] => &micro; [54] => &para; [55] => &CenterDot; [56] => &Cedilla; [57] => &sup1; [58] => &ordm; [59] => &raquo; [60] => &frac14; [61] => &half; [62] => &frac34; [63] => &iquest; [64] => &Agrave; [65] => &Aacute; [66] => &Acirc; [67] => &Atilde; [68] => &Auml; [69] => &Aring; [70] => &AElig; [71] => &Ccedil; [72] => &Egrave; [73] => &Eacute; [74] => &Ecirc; [75] => &Euml; [76] => &Igrave; [77] => &Iacute; [78] => &Icirc; [79] => &Iuml; [80] => &ETH; [81] => &Ntilde; [82] => &Ograve; [83] => &Oacute; [84] => &Ocirc; [85] => &Otilde; [86] => &Ouml; [87] => &times; [88] => &Oslash; [89] => &Ugrave; [90] => &Uacute; [91] => &Ucirc; [92] => &Uuml; [93] => &Yacute; [94] => &THORN; [95] => &szlig; [96] => &agrave; [97] => &aacute; [98] => &acirc; [99] => &atilde; [100] => &auml; [101] => &aring; [102] => &aelig; [103] => &ccedil; [104] => &egrave; [105] => &eacute; [106] => &ecirc; [107] => &euml; [108] => &igrave; [109] => &iacute; [110] => &icirc; [111] => &iuml; [112] => &eth; [113] => &ntilde; [114] => &ograve; [115] => &oacute; [116] => &ocirc; [117] => &otilde; [118] => &ouml; [119] => &divide; [120] => &oslash; [121] => &ugrave; [122] => &uacute; [123] => &ucirc; [124] => &uuml; [125] => &yacute; [126] => &thorn; [127] => &yuml; ) Software de comunicaci&Atilde;&sup3;n
Output for 5.4.0 - 5.4.11
Array ( [0] => [1] => [2] => ! [3] => # [4] => $ [5] => % [6] => & [7] => ( [8] => ) [9] => * [10] => + [11] => , [12] => . [13] => / [14] => : [15] => ; [16] => <� [17] => = [18] => =� [19] => >� [20] => ? ) Array ( [0] => &Tab; [1] => &NewLine; [2] => &excl; [3] => &num; [4] => &dollar; [5] => &percnt; [6] => &amp; [7] => &lpar; [8] => &rpar; [9] => &ast; [10] => &plus; [11] => &comma; [12] => &period; [13] => &sol; [14] => &colon; [15] => &semi; [16] => &nvlt [17] => &equals; [18] => &bne [19] => &nvgt [20] => &quest; ) Software de comunicación
Output for 5.3.4 - 5.3.29
Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /in/ZdVKU on line 2 Array ( [0] => � [1] => � [2] => � [3] => � [4] => � [5] => � [6] => � [7] => � [8] => � [9] => � [10] => � [11] => � [12] => � [13] => � [14] => � [15] => � [16] => � [17] => � [18] => � [19] => � [20] => � [21] => � [22] => � [23] => � [24] => � [25] => � [26] => � [27] => � [28] => � [29] => � [30] => � [31] => � [32] => � [33] => � [34] => � [35] => � [36] => � [37] => � [38] => � [39] => � [40] => � [41] => � [42] => � [43] => � [44] => � [45] => � [46] => � [47] => � [48] => � [49] => � [50] => � [51] => � [52] => � [53] => � [54] => � [55] => � [56] => � [57] => � [58] => � [59] => � [60] => � [61] => � [62] => � [63] => � [64] => � [65] => � [66] => � [67] => � [68] => � [69] => � [70] => � [71] => � [72] => � [73] => � [74] => � [75] => � [76] => � [77] => � [78] => � [79] => � [80] => � [81] => � [82] => � [83] => � [84] => � [85] => � [86] => � [87] => � [88] => � [89] => � [90] => � [91] => � [92] => � [93] => � [94] => � [95] => � [96] => & ) Array ( [0] => &nbsp; [1] => &iexcl; [2] => &cent; [3] => &pound; [4] => &curren; [5] => &yen; [6] => &brvbar; [7] => &sect; [8] => &uml; [9] => &copy; [10] => &ordf; [11] => &laquo; [12] => &not; [13] => &shy; [14] => &reg; [15] => &macr; [16] => &deg; [17] => &plusmn; [18] => &sup2; [19] => &sup3; [20] => &acute; [21] => &micro; [22] => &para; [23] => &middot; [24] => &cedil; [25] => &sup1; [26] => &ordm; [27] => &raquo; [28] => &frac14; [29] => &frac12; [30] => &frac34; [31] => &iquest; [32] => &Agrave; [33] => &Aacute; [34] => &Acirc; [35] => &Atilde; [36] => &Auml; [37] => &Aring; [38] => &AElig; [39] => &Ccedil; [40] => &Egrave; [41] => &Eacute; [42] => &Ecirc; [43] => &Euml; [44] => &Igrave; [45] => &Iacute; [46] => &Icirc; [47] => &Iuml; [48] => &ETH; [49] => &Ntilde; [50] => &Ograve; [51] => &Oacute; [52] => &Ocirc; [53] => &Otilde; [54] => &Ouml; [55] => &times; [56] => &Oslash; [57] => &Ugrave; [58] => &Uacute; [59] => &Ucirc; [60] => &Uuml; [61] => &Yacute; [62] => &THORN; [63] => &szlig; [64] => &agrave; [65] => &aacute; [66] => &acirc; [67] => &atilde; [68] => &auml; [69] => &aring; [70] => &aelig; [71] => &ccedil; [72] => &egrave; [73] => &eacute; [74] => &ecirc; [75] => &euml; [76] => &igrave; [77] => &iacute; [78] => &icirc; [79] => &iuml; [80] => &eth; [81] => &ntilde; [82] => &ograve; [83] => &oacute; [84] => &ocirc; [85] => &otilde; [86] => &ouml; [87] => &divide; [88] => &oslash; [89] => &ugrave; [90] => &uacute; [91] => &ucirc; [92] => &uuml; [93] => &yacute; [94] => &thorn; [95] => &yuml; [96] => &amp; ) Software de comunicaci&amp;Atilde;&amp;sup3;n
Output for 5.3.0 - 5.3.3
Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /in/ZdVKU on line 2 Warning: get_html_translation_table() expects at most 2 parameters, 3 given in /in/ZdVKU on line 2 Warning: array_keys() expects parameter 1 to be array, null given in /in/ZdVKU on line 5 Warning: array_values() expects parameter 1 to be array, null given in /in/ZdVKU on line 6 Software de comunicación
Output for 4.3.2 - 5.2.17
Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /in/ZdVKU on line 2 Warning: get_html_translation_table() expects at most 2 parameters, 3 given in /in/ZdVKU on line 2 Warning: array_keys(): The first argument should be an array in /in/ZdVKU on line 5 Warning: array_values(): The argument should be an array in /in/ZdVKU on line 6 Software de comunicación
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /in/ZdVKU on line 2 Warning: get_html_translation_table() expects at most 2 parameters, 3 given in /in/ZdVKU on line 2 Warning: array_keys() [http://www.php.net/function.array-keys]: The first argument should be an array in /in/ZdVKU on line 5 Warning: array_values() [http://www.php.net/function.array-values]: The argument should be an array in /in/ZdVKU on line 6 Software de comunicación