3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('codepoint_encode')) { function codepoint_encode($str) { return substr(json_encode($str), 1, -1); } } if (!function_exists('codepoint_decode')) { function codepoint_decode($str) { return json_decode(sprintf('"%s"', $str)); } } if (!function_exists('mb_internal_encoding')) { function mb_internal_encoding($encoding = NULL) { return ($from_encoding === NULL) ? iconv_get_encoding() : iconv_set_encoding($encoding); } } if (!function_exists('mb_convert_encoding')) { function mb_convert_encoding($str, $to_encoding, $from_encoding = NULL) { return iconv(($from_encoding === NULL) ? mb_internal_encoding() : $from_encoding, $to_encoding, $str); } } if (!function_exists('mb_chr')) { function mb_chr($ord, $encoding = 'UTF-8') { if ($encoding === 'UCS-4BE') { return pack("N", $ord); } else { return mb_convert_encoding(mb_chr($ord, 'UCS-4BE'), $encoding, 'UCS-4BE'); } } } if (!function_exists('mb_ord')) { function mb_ord($char, $encoding = 'UTF-8') { if ($encoding === 'UCS-4BE') { list(, $ord) = (strlen($char) === 4) ? @unpack('N', $char) : @unpack('n', $char); return $ord; } else { return mb_ord(mb_convert_encoding($char, 'UCS-4BE', $encoding), 'UCS-4BE'); } } } if (!function_exists('mb_htmlentities')) { function mb_htmlentities($string, $hex = true, $encoding = 'UTF-8') { return preg_replace_callback('/[\x{80}-\x{10FFFF}]/u', function ($match) use ($hex) { return sprintf($hex ? '&#x%X;' : '&#%d;', mb_ord($match[0])); }, $string); } } if (!function_exists('mb_html_entity_decode')) { function mb_html_entity_decode($string, $flags = null, $encoding = 'UTF-8') { return html_entity_decode($string, ($flags === NULL) ? ENT_COMPAT | ENT_HTML401 : $flags, $encoding); } } const EMOJIS = [ "00a9" => [["\u00A9\uFE0F", "\u00A9"], "\uE24E", "\uDBBA\uDF29", ["copyright"], 0, 0, 11, 0], "00ae" => [["\u00AE\uFE0F", "\u00AE"], "\uE24F", "\uDBBA\uDF2D", ["registered"], 0, 1, 11, 0], "203c" => [["\u203C\uFE0F", "\u203C"], "", "\uDBBA\uDF06", ["bangbang"], 0, 2, 15, 0] ]; function parse_emojis(string $string): string { preg_match_all('/(?<match>:.*:)/', $string, $matches, PREG_PATTERN_ORDER); $emojis = $matches['match']; foreach ($emojis as $emoji): $emoji_name = trim($emoji, ':'); foreach (EMOJIS as $key => $value): $names = $value[3]; foreach($names as $name): if ($name == $emoji_name): $string = str_replace($emoji, mb_chr('0x' . $key), $string); break; endif; endforeach; endforeach; endforeach; return $string; } var_dump(parse_emojis(' Ok. Nice :registered: Very very very nice :bangbang: Good. '));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 30
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 42
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 48
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
Branch analysis from position: 42
Branch analysis from position: 36
Branch analysis from position: 30
Branch analysis from position: 24
Branch analysis from position: 18
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/hcGBU
function name:  (null)
number of ops:  56
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'codepoint_encode'
          2        DO_ICALL                                         $0      
          3        BOOL_NOT                                         ~1      $0
          4      > JMPZ                                                     ~1, ->6
    4     5    >   DECLARE_FUNCTION                                         'codepoint_encode'
    9     6    >   INIT_FCALL                                               'function_exists'
          7        SEND_VAL                                                 'codepoint_decode'
          8        DO_ICALL                                         $2      
          9        BOOL_NOT                                         ~3      $2
         10      > JMPZ                                                     ~3, ->12
   10    11    >   DECLARE_FUNCTION                                         'codepoint_decode'
   15    12    >   INIT_FCALL                                               'function_exists'
         13        SEND_VAL                                                 'mb_internal_encoding'
         14        DO_ICALL                                         $4      
         15        BOOL_NOT                                         ~5      $4
         16      > JMPZ                                                     ~5, ->18
   16    17    >   DECLARE_FUNCTION                                         'mb_internal_encoding'
   21    18    >   INIT_FCALL                                               'function_exists'
         19        SEND_VAL                                                 'mb_convert_encoding'
         20        DO_ICALL                                         $6      
         21        BOOL_NOT                                         ~7      $6
         22      > JMPZ                                                     ~7, ->24
   22    23    >   DECLARE_FUNCTION                                         'mb_convert_encoding'
   27    24    >   INIT_FCALL                                               'function_exists'
         25        SEND_VAL                                                 'mb_chr'
         26        DO_ICALL                                         $8      
         27        BOOL_NOT                                         ~9      $8
         28      > JMPZ                                                     ~9, ->30
   28    29    >   DECLARE_FUNCTION                                         'mb_chr'
   37    30    >   INIT_FCALL                                               'function_exists'
         31        SEND_VAL                                                 'mb_ord'
         32        DO_ICALL                                         $10     
         33        BOOL_NOT                                         ~11     $10
         34      > JMPZ                                                     ~11, ->36
   38    35    >   DECLARE_FUNCTION                                         'mb_ord'
   48    36    >   INIT_FCALL                                               'function_exists'
         37        SEND_VAL                                                 'mb_htmlentities'
         38        DO_ICALL                                         $12     
         39        BOOL_NOT                                         ~13     $12
         40      > JMPZ                                                     ~13, ->42
   49    41    >   DECLARE_FUNCTION                                         'mb_htmlentities'
   56    42    >   INIT_FCALL                                               'function_exists'
         43        SEND_VAL                                                 'mb_html_entity_decode'
         44        DO_ICALL                                         $14     
         45        BOOL_NOT                                         ~15     $14
         46      > JMPZ                                                     ~15, ->48
   57    47    >   DECLARE_FUNCTION                                         'mb_html_entity_decode'
   65    48    >   DECLARE_CONST                                            'EMOJIS', <array>
   99    49        INIT_FCALL                                               'var_dump'
         50        INIT_FCALL                                               'parse_emojis'
         51        SEND_VAL                                                 '%0A%09%09Ok.%0A%0A%09%09Nice+%3Aregistered%3A%0A%0A%09%09Very+very+very+nice+%3Abangbang%3A%0A%0A%09%09Good.%0A%09'
         52        DO_FCALL                                      0  $16     
         53        SEND_VAR                                                 $16
         54        DO_ICALL                                                 
  107    55      > RETURN                                                   1

Function %00codepoint_encode%2Fin%2FhcGBU%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcGBU
function name:  codepoint_encode
number of ops:  11
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'json_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 -1
          8        DO_ICALL                                         $2      
          9      > RETURN                                                   $2
    6    10*     > RETURN                                                   null

End of function %00codepoint_encode%2Fin%2FhcGBU%3A4%240

Function %00codepoint_decode%2Fin%2FhcGBU%3A10%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcGBU
function name:  codepoint_decode
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_FCALL                                               'json_decode'
          2        INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 '%22%25s%22'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8      > RETURN                                                   $2
   12     9*     > RETURN                                                   null

End of function %00codepoint_decode%2Fin%2FhcGBU%3A10%241

Function %00mb_internal_encoding%2Fin%2FhcGBU%3A16%242:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcGBU
function name:  mb_internal_encoding
number of ops:  13
compiled vars:  !0 = $encoding, !1 = $from_encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV_INIT                                        !0      null
   17     1        TYPE_CHECK                                    2          !1
          2      > JMPZ                                                     ~2, ->7
          3    >   INIT_FCALL_BY_NAME                                       'iconv_get_encoding'
          4        DO_FCALL                                      0  $3      
          5        QM_ASSIGN                                        ~4      $3
          6      > JMP                                                      ->11
          7    >   INIT_FCALL_BY_NAME                                       'iconv_set_encoding'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $5      
         10        QM_ASSIGN                                        ~4      $5
         11    > > RETURN                                                   ~4
   18    12*     > RETURN                                                   null

End of function %00mb_internal_encoding%2Fin%2FhcGBU%3A16%242

Function %00mb_convert_encoding%2Fin%2FhcGBU%3A22%243:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcGBU
function name:  mb_convert_encoding
number of ops:  17
compiled vars:  !0 = $str, !1 = $to_encoding, !2 = $from_encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      null
   23     3        INIT_FCALL_BY_NAME                                       'iconv'
          4        TYPE_CHECK                                    2          !2
          5      > JMPZ                                                     ~3, ->10
          6    >   INIT_FCALL                                               'mb_internal_encoding'
          7        DO_ICALL                                         $4      
          8        QM_ASSIGN                                        ~5      $4
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~5      !2
         11    >   SEND_VAL_EX                                              ~5
         12        SEND_VAR_EX                                              !1
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $6      
         15      > RETURN                                                   $6
   24    16*     > RETURN                                                   null

End of function %00mb_convert_encoding%2Fin%2FhcGBU%3A22%243

Function %00mb_chr%2Fin%2FhcGBU%3A28%244:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcGBU
function name:  mb_chr
number of ops:  21
compiled vars:  !0 = $ord, !1 = $encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'UTF-8'
   29     2        IS_IDENTICAL                                             !1, 'UCS-4BE'
          3      > JMPZ                                                     ~2, ->10
   30     4    >   INIT_FCALL                                               'pack'
          5        SEND_VAL                                                 'N'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8      > RETURN                                                   $3
          9*       JMP                                                      ->20
   32    10    >   INIT_FCALL                                               'mb_convert_encoding'
         11        INIT_FCALL                                               'mb_chr'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 'UCS-4BE'
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 'UCS-4BE'
         18        DO_ICALL                                         $5      
         19      > RETURN                                                   $5
   34    20*     > RETURN                                                   null

End of function %00mb_chr%2Fin%2FhcGBU%3A28%244

Function %00mb_ord%2Fin%2FhcGBU%3A38%245:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 27
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcGBU
function name:  mb_ord
number of ops:  38
compiled vars:  !0 = $char, !1 = $encoding, !2 = $ord
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'UTF-8'
   39     2        IS_IDENTICAL                                             !1, 'UCS-4BE'
          3      > JMPZ                                                     ~3, ->27
   40     4    >   STRLEN                                           ~4      !0
          5        IS_IDENTICAL                                             ~4, 4
          6      > JMPZ                                                     ~5, ->15
          7    >   BEGIN_SILENCE                                    ~6      
          8        INIT_FCALL                                               'unpack'
          9        SEND_VAL                                                 'N'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        END_SILENCE                                              ~6
         13        QM_ASSIGN                                        ~8      $7
         14      > JMP                                                      ->22
         15    >   BEGIN_SILENCE                                    ~9      
         16        INIT_FCALL                                               'unpack'
         17        SEND_VAL                                                 'n'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $10     
         20        END_SILENCE                                              ~9
         21        QM_ASSIGN                                        ~8      $10
         22    >   FETCH_LIST_R                                     $11     ~8, 1
         23        ASSIGN                                                   !2, $11
         24        FREE                                                     ~8
   41    25      > RETURN                                                   !2
         26*       JMP                                                      ->37
   43    27    >   INIT_FCALL                                               'mb_ord'
         28        INIT_FCALL                                               'mb_convert_encoding'
         29        SEND_VAR                                                 !0
         30        SEND_VAL                                                 'UCS-4BE'
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                         $13     
         33        SEND_VAR                                                 $13
         34        SEND_VAL                                                 'UCS-4BE'
         35        DO_ICALL                                         $14     
         36      > RETURN                                                   $14
   45    37*     > RETURN                                                   null

End of function %00mb_ord%2Fin%2FhcGBU%3A38%245

Function %00mb_htmlentities%2Fin%2FhcGBU%3A49%246:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcGBU
function name:  mb_htmlentities
number of ops:  12
compiled vars:  !0 = $string, !1 = $hex, !2 = $encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   49     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <true>
          2        RECV_INIT                                        !2      'UTF-8'
   50     3        INIT_FCALL                                               'preg_replace_callback'
          4        SEND_VAL                                                 '%2F%5B%5Cx%7B80%7D-%5Cx%7B10FFFF%7D%5D%2Fu'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FhcGBU%3A50%247'
          6        BIND_LEXICAL                                             ~3, !1
   52     7        SEND_VAL                                                 ~3
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10      > RETURN                                                   $4
   53    11*     > RETURN                                                   null

End of function %00mb_htmlentities%2Fin%2FhcGBU%3A49%246

Function %00%7Bclosure%7D%2Fin%2FhcGBU%3A50%247:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcGBU
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $match, !1 = $hex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   50     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
   51     2        INIT_FCALL                                               'sprintf'
          3      > JMPZ                                                     !1, ->6
          4    >   QM_ASSIGN                                        ~2      '%26%23x%25X%3B'
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~2      '%26%23%25d%3B'
          7    >   SEND_VAL                                                 ~2
          8        INIT_FCALL                                               'mb_ord'
          9        FETCH_DIM_R                                      ~3      !0, 0
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14      > RETURN                                                   $5
   52    15*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FhcGBU%3A50%247

Function %00mb_html_entity_decode%2Fin%2FhcGBU%3A57%248:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hcGBU
function name:  mb_html_entity_decode
number of ops:  15
compiled vars:  !0 = $string, !1 = $flags, !2 = $encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   57     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      'UTF-8'
   58     3        INIT_FCALL                                               'html_entity_decode'
          4        SEND_VAR                                                 !0
          5        TYPE_CHECK                                    2          !1
          6      > JMPZ                                                     ~3, ->9
          7    >   QM_ASSIGN                                        ~4      2
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~4      !1
         10    >   SEND_VAL                                                 ~4
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $5      
         13      > RETURN                                                   $5
   59    14*     > RETURN                                                   null

End of function %00mb_html_entity_decode%2Fin%2FhcGBU%3A57%248

Function parse_emojis:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 42
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 42
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 40
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 40
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 38
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 38
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 37
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 38
Branch analysis from position: 38
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 40
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
filename:       /in/hcGBU
function name:  parse_emojis
number of ops:  47
compiled vars:  !0 = $string, !1 = $matches, !2 = $emojis, !3 = $emoji, !4 = $emoji_name, !5 = $value, !6 = $key, !7 = $names, !8 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   71     0  E >   RECV                                             !0      
   73     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28%3F%3Cmatch%3E%3A.%2A%3A%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
   74     7        FETCH_DIM_R                                      ~10     !1, 'match'
          8        ASSIGN                                                   !2, ~10
   76     9      > FE_RESET_R                                       $12     !2, ->42
         10    > > FE_FETCH_R                                               $12, !3, ->42
   77    11    >   INIT_FCALL                                               'trim'
         12        SEND_VAR                                                 !3
         13        SEND_VAL                                                 '%3A'
         14        DO_ICALL                                         $13     
         15        ASSIGN                                                   !4, $13
   79    16        FETCH_CONSTANT                                   ~15     'EMOJIS'
         17      > FE_RESET_R                                       $16     ~15, ->40
         18    > > FE_FETCH_R                                       ~17     $16, !5, ->40
         19    >   ASSIGN                                                   !6, ~17
   80    20        FETCH_DIM_R                                      ~19     !5, 3
         21        ASSIGN                                                   !7, ~19
   82    22      > FE_RESET_R                                       $21     !7, ->38
         23    > > FE_FETCH_R                                               $21, !8, ->38
   83    24    >   IS_EQUAL                                                 !8, !4
         25      > JMPZ                                                     ~22, ->37
   84    26    >   INIT_FCALL                                               'str_replace'
         27        SEND_VAR                                                 !3
         28        INIT_FCALL                                               'mb_chr'
         29        CONCAT                                           ~23     '0x', !6
         30        SEND_VAL                                                 ~23
         31        DO_ICALL                                         $24     
         32        SEND_VAR                                                 $24
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                         $25     
         35        ASSIGN                                                   !0, $25
   86    36      > JMP                                                      ->38
   82    37    > > JMP                                                      ->23
         38    >   FE_FREE                                                  $21
   79    39      > JMP                                                      ->18
         40    >   FE_FREE                                                  $16
   76    41      > JMP                                                      ->10
         42    >   FE_FREE                                                  $12
   92    43        VERIFY_RETURN_TYPE                                       !0
         44      > RETURN                                                   !0
   93    45*       VERIFY_RETURN_TYPE                                       
         46*     > RETURN                                                   null

End of function parse_emojis

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.54 ms | 1427 KiB | 48 Q