3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Sökinställningar'; $data = [$str, 'abc']; var_dump(mb_convert_encoding($data, 'UTF-8', 'auto')); $data = [$str => 'abc', 'abc' => 'def']; var_dump(mb_convert_encoding($data, 'UTF-8', 'auto'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gPqjF
function name:  (null)
number of ops:  24
compiled vars:  !0 = $str, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'S%C3%B6kinst%C3%A4llningar'
    4     1        INIT_ARRAY                                       ~3      !0
          2        ADD_ARRAY_ELEMENT                                ~3      'abc'
          3        ASSIGN                                                   !1, ~3
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'mb_convert_encoding'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 'UTF-8'
          8        SEND_VAL                                                 'auto'
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    6    12        INIT_ARRAY                                       ~7      'abc', !0
         13        ADD_ARRAY_ELEMENT                                ~7      'def', 'abc'
         14        ASSIGN                                                   !1, ~7
    7    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'mb_convert_encoding'
         17        SEND_VAR                                                 !1
         18        SEND_VAL                                                 'UTF-8'
         19        SEND_VAL                                                 'auto'
         20        DO_ICALL                                         $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.55 ms | 1011 KiB | 15 Q