3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_substitute_character("long"); var_dump( $conv = mb_convert_encoding( $bin = hex2bin("70000000"), "UTF-8", "UCS-4BE" ), mb_check_encoding($bin, "UCS-4BE"), bin2hex(mb_convert_encoding($conv, "UCS-4BE", "UTF-8")) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hJtH5
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                                                 '70000000'
          7        DO_ICALL                                         $3      
          8        ASSIGN                                           ~4      !1, $3
          9        SEND_VAL                                                 ~4
    7    10        SEND_VAL                                                 'UTF-8'
    8    11        SEND_VAL                                                 'UCS-4BE'
    5    12        DO_ICALL                                         $5      
         13        ASSIGN                                           ~6      !0, $5
         14        SEND_VAL                                                 ~6
   10    15        INIT_FCALL                                               'mb_check_encoding'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 'UCS-4BE'
         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                                                 'UCS-4BE'
         24        SEND_VAL                                                 'UTF-8'
         25        DO_ICALL                                         $8      
         26        SEND_VAR                                                 $8
         27        DO_ICALL                                         $9      
         28        SEND_VAR                                                 $9
    4    29        DO_ICALL                                                 
   12    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.14 ms | 1465 KiB | 19 Q