3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8='η.∊'; var_dump($utf8, mb_convert_encoding($utf8,'CP1252','UTF-8'), mb_convert_encoding(mb_convert_encoding($utf8,'CP1252','UTF-8'),'UTF-8','CP1252') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UC1QE
function name:  (null)
number of ops:  22
compiled vars:  !0 = $utf8
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%CE%B7.%E2%88%8A'
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
    4     3        INIT_FCALL                                               'mb_convert_encoding'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'CP1252'
          6        SEND_VAL                                                 'UTF-8'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
    5     9        INIT_FCALL                                               'mb_convert_encoding'
         10        INIT_FCALL                                               'mb_convert_encoding'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'CP1252'
         13        SEND_VAL                                                 'UTF-8'
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        SEND_VAL                                                 'UTF-8'
         17        SEND_VAL                                                 'CP1252'
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
    3    20        DO_ICALL                                                 
    7    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.72 ms | 1437 KiB | 15 Q