3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('default_charset', 'UTF-8'); $string = '𝌆'; echo 'filter_var: ' . filter_var($string, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . PHP_EOL; echo 'htmlspecialchars: ' . htmlspecialchars($string, ENT_QUOTES);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uQ1C5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'default_charset'
          2        SEND_VAL                                                 'UTF-8'
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, '%F0%9D%8C%86'
    7     5        INIT_FCALL                                               'filter_var'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 522
          8        DO_ICALL                                         $3      
          9        CONCAT                                           ~4      'filter_var%3A+', $3
         10        CONCAT                                           ~5      ~4, '%0A'
         11        ECHO                                                     ~5
    8    12        INIT_FCALL                                               'htmlspecialchars'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 3
         15        DO_ICALL                                         $6      
         16        CONCAT                                           ~7      'htmlspecialchars%3A+', $6
         17        ECHO                                                     ~7
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.81 ms | 1399 KiB | 19 Q