3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h = '0032003000310038002d00300031002d00300031'; $s_be = hex2bin($h); var_dump($s_be); $s = mb_convert_encoding($s_be, 'UTF-8', 'UTF-16BE'); var_dump($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qEAia
function name:  (null)
number of ops:  18
compiled vars:  !0 = $h, !1 = $s_be, !2 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0032003000310038002d00300031002d00300031'
    4     1        INIT_FCALL                                               'hex2bin'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'mb_convert_encoding'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 'UTF-8'
         11        SEND_VAL                                                 'UTF-16BE'
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    8    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.97 ms | 1394 KiB | 19 Q