3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<>&'\""; echo htmlspecialchars($str, ENT_QUOTES), PHP_EOL; echo htmlspecialchars($str, ENT_QUOTES|ENT_HTML5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7YRtV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3E%26%27%22'
    3     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 3
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
          6        ECHO                                                     '%0A'
    4     7        INIT_FCALL                                               'htmlspecialchars'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 51
         10        DO_ICALL                                         $3      
         11        ECHO                                                     $3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.66 ms | 1443 KiB | 14 Q