3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "Jeanâ€Paul"; $str2 = "Jean-Paul"; $str3 = ''; echo iconv(mb_detect_encoding($str2), mb_detect_encoding($str1), $str2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iXQmb
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str1, !1 = $str2, !2 = $str3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Jean%C3%A2%E2%82%ACPaul'
    3     1        ASSIGN                                                   !1, 'Jean-Paul'
    4     2        ASSIGN                                                   !2, ''
    5     3        INIT_FCALL_BY_NAME                                       'iconv'
          4        INIT_FCALL                                               'mb_detect_encoding'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        SEND_VAR_NO_REF_EX                                       $6
          8        INIT_FCALL                                               'mb_detect_encoding'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        SEND_VAR_NO_REF_EX                                       $7
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $8      
         14        ECHO                                                     $8
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.08 ms | 1394 KiB | 18 Q