3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8Str = "❶❷❸❹❺"; $sjisStr = mb_convert_encoding($utf8Str, 'SJIS-mac'); echo(mb_detect_encoding($sjisStr, ['UTF-8','SJIS-mac', 'SJIS-win', 'SJIS']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dm4sA
function name:  (null)
number of ops:  12
compiled vars:  !0 = $utf8Str, !1 = $sjisStr
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, '%E2%9D%B6%E2%9D%B7%E2%9D%B8%E2%9D%B9%E2%9D%BA'
   5     1        INIT_FCALL                                               'mb_convert_encoding'
         2        SEND_VAR                                                 !0
         3        SEND_VAL                                                 'SJIS-mac'
         4        DO_ICALL                                         $3      
         5        ASSIGN                                                   !1, $3
   7     6        INIT_FCALL                                               'mb_detect_encoding'
         7        SEND_VAR                                                 !1
         8        SEND_VAL                                                 <array>
         9        DO_ICALL                                         $5      
        10        ECHO                                                     $5
        11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
16.02 ms | 460 KiB | 7 Q