3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "This has <> charactors to 'escape'"; var_dump(mb_strlen($str)); var_dump(mb_strlen(htmlspecialchars($str, ENT_QUOTES)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5rVAd
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'This+has+%3C%3E+charactors+to+%27escape%27'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'mb_strlen'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'mb_strlen'
          9        INIT_FCALL                                               'htmlspecialchars'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 3
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.03 ms | 1394 KiB | 19 Q