3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass = 'asdf&ddddd"fancy˝quotes˝'; echo htmlspecialchars($text, ENT_COMPAT | ENT_HTML401, 'UTF-8') . "\n"; // Output: asdf&amp;ddddd&quot;fancyË echo htmlentities($text, ENT_COMPAT | ENT_HTML401, 'UTF-8') . "\n"; // Output: asdf&amp;ddddd&quot;fancy&Euml;quotes
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NMj8q
function name:  (null)
number of ops:  16
compiled vars:  !0 = $pass, !1 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'asdf%26ddddd%22fancy%CB%9Dquotes%CB%9D'
    4     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !1
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $3      
          6        CONCAT                                           ~4      $3, '%0A'
          7        ECHO                                                     ~4
    7     8        INIT_FCALL                                               'htmlentities'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 2
         11        SEND_VAL                                                 'UTF-8'
         12        DO_ICALL                                         $5      
         13        CONCAT                                           ~6      $5, '%0A'
         14        ECHO                                                     ~6
    8    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.74 ms | 1394 KiB | 17 Q