3v4l.org

run code in 300+ PHP versions simultaneously
<?php //<h1>Katowice => Krakow</h1> //&lt;h1&gt;Katowice =&lt; Krakow &lt;/h1&gt; $html = "<td>&lt;h1&gt;Katowice © Krakow &lt;/h1&gt;</td>"; //$html = "<p><span>Copyright © 2008 Your Company Name</span>"; $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8"); //$html = htmlspecialchars($html); print $html."\n"; //$html = htmlspecialchars_decode($html); //$html = mb_convert_encoding($html, "UTF-8", 'HTML-ENTITIES'); print $html;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/veGRI
function name:  (null)
number of ops:  11
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, '%3Ctd%3E%26lt%3Bh1%26gt%3BKatowice+%C2%A9+Krakow+%26lt%3B%2Fh1%26gt%3B%3C%2Ftd%3E'
    9     1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'HTML-ENTITIES'
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   12     7        CONCAT                                           ~4      !0, '%0A'
          8        ECHO                                                     ~4
   18     9        ECHO                                                     !0
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
212.22 ms | 1394 KiB | 15 Q