3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( $conv = mb_convert_encoding( $bin = hex2bin("7e0a"), "HZ", "ASCII" ), mb_check_encoding($bin, "ASCII"), bin2hex(mb_convert_encoding($conv, "ASCII", "HZ")) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9VqWB
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                                                 '7e0a'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                           ~3      !1, $2
          6        SEND_VAL                                                 ~3
    6     7        SEND_VAL                                                 'HZ'
    7     8        SEND_VAL                                                 'ASCII'
    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                                                 'ASCII'
         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                                                 'ASCII'
         21        SEND_VAL                                                 'HZ'
         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:
145.23 ms | 1463 KiB | 18 Q