3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.24 ms | 1463 KiB | 18 Q