3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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/Rn3dH
function name:  (null)
number of ops:  29
compiled vars:  !0 = $source
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_convert_encoding'
          1        SEND_VAL                                                 'test'
          2        SEND_VAL                                                 '+UTF-16BE'
          3        SEND_VAL                                                 'utf-8'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    5     6        INIT_FCALL                                               'unpack'
          7        SEND_VAL                                                 'C%2A'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'mb_convert_encoding'
         15        SEND_VAL                                                 'test'
         16        SEND_VAL                                                 '+UTF-16LE'
         17        SEND_VAL                                                 'utf-8'
         18        DO_ICALL                                         $6      
         19        ASSIGN                                                   !0, $6
         20        INIT_FCALL                                               'unpack'
         21        SEND_VAL                                                 'C%2A'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $8      
         24        ASSIGN                                                   !0, $8
         25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.13 ms | 1395 KiB | 19 Q