3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_list_encodings()); $source = mb_convert_encoding('test', " UTF-16BE", "utf-8"); $source = unpack('C*', $source); var_dump($source); $source = mb_convert_encoding('test', " UTF-16LE", "utf-8"); $source = unpack('C*', $source); var_dump($source);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dcanW
function name:  (null)
number of ops:  34
compiled vars:  !0 = $source
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'mb_list_encodings'
          2        DO_ICALL                                         $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'mb_convert_encoding'
          6        SEND_VAL                                                 'test'
          7        SEND_VAL                                                 '+UTF-16BE'
          8        SEND_VAL                                                 'utf-8'
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    5    11        INIT_FCALL                                               'unpack'
         12        SEND_VAL                                                 'C%2A'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        ASSIGN                                                   !0, $5
    6    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   10    19        INIT_FCALL                                               'mb_convert_encoding'
         20        SEND_VAL                                                 'test'
         21        SEND_VAL                                                 '+UTF-16LE'
         22        SEND_VAL                                                 'utf-8'
         23        DO_ICALL                                         $8      
         24        ASSIGN                                                   !0, $8
         25        INIT_FCALL                                               'unpack'
         26        SEND_VAL                                                 'C%2A'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $10     
         29        ASSIGN                                                   !0, $10
         30        INIT_FCALL                                               'var_dump'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.11 ms | 1401 KiB | 21 Q