3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "\x1B"; print htmlspecialchars($str, ENT_COMPAT, 'UTF-8') . "\n"; print htmlspecialchars($str, ENT_QUOTES, 'UTF-8') . "\n"; print htmlspecialchars($str, ENT_XML1, 'UTF-8') . "\n"; print htmlspecialchars($str, ENT_XHTML, 'UTF-8') . "\n"; print htmlspecialchars($str, ENT_HTML5, 'UTF-8') . "\n"; print htmlspecialchars($str, ENT_XML1 | ENT_DISALLOWED, 'UTF-8') . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kE1Sc
function name:  (null)
number of ops:  44
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%1B'
    4     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      $2, '%0A'
          7        ECHO                                                     ~3
    5     8        INIT_FCALL                                               'htmlspecialchars'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 3
         11        SEND_VAL                                                 'UTF-8'
         12        DO_ICALL                                         $4      
         13        CONCAT                                           ~5      $4, '%0A'
         14        ECHO                                                     ~5
    6    15        INIT_FCALL                                               'htmlspecialchars'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 16
         18        SEND_VAL                                                 'UTF-8'
         19        DO_ICALL                                         $6      
         20        CONCAT                                           ~7      $6, '%0A'
         21        ECHO                                                     ~7
    7    22        INIT_FCALL                                               'htmlspecialchars'
         23        SEND_VAR                                                 !0
         24        SEND_VAL                                                 32
         25        SEND_VAL                                                 'UTF-8'
         26        DO_ICALL                                         $8      
         27        CONCAT                                           ~9      $8, '%0A'
         28        ECHO                                                     ~9
    8    29        INIT_FCALL                                               'htmlspecialchars'
         30        SEND_VAR                                                 !0
         31        SEND_VAL                                                 48
         32        SEND_VAL                                                 'UTF-8'
         33        DO_ICALL                                         $10     
         34        CONCAT                                           ~11     $10, '%0A'
         35        ECHO                                                     ~11
    9    36        INIT_FCALL                                               'htmlspecialchars'
         37        SEND_VAR                                                 !0
         38        SEND_VAL                                                 144
         39        SEND_VAL                                                 'UTF-8'
         40        DO_ICALL                                         $12     
         41        CONCAT                                           ~13     $12, '%0A'
         42        ECHO                                                     ~13
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.63 ms | 1388 KiB | 15 Q