3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.1 ms | 1395 KiB | 25 Q