3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 123.45; $b = 1; $str = 'ー'; var_dump(bin2hex($str)); $str_2 = mb_convert_encoding($str, 'SJIS-win', 'UTF-8'); var_dump(bin2hex($str_2)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bM5Z3
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $b, !2 = $str, !3 = $str_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 123.45
    5     1        ASSIGN                                                   !1, 1
    7     2        ASSIGN                                                   !2, '%EF%BD%B0'
    8     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'bin2hex'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $7      
          7        SEND_VAR                                                 $7
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'mb_convert_encoding'
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 'SJIS-win'
         12        SEND_VAL                                                 'UTF-8'
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !3, $9
   10    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'bin2hex'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $11     
         19        SEND_VAR                                                 $11
         20        DO_ICALL                                                 
   16    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.66 ms | 1395 KiB | 19 Q