3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "Jeanâ€Paul"; $str2 = "Jean-Paul"; $str3 = iconv(mb_detect_encoding($str2), mb_detect_encoding($str1).'//TRANSLIT', $str1); if ($str3 == $str2) { echo "equal"; } else { echo "different"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pX2m7
function name:  (null)
number of ops:  21
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        INIT_FCALL_BY_NAME                                       'iconv'
          3        INIT_FCALL                                               'mb_detect_encoding'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        SEND_VAR_NO_REF_EX                                       $5
          7        INIT_FCALL                                               'mb_detect_encoding'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      $6, '%2F%2FTRANSLIT'
         11        SEND_VAL_EX                                              ~7
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $8      
         14        ASSIGN                                                   !2, $8
    6    15        IS_EQUAL                                                 !2, !1
         16      > JMPZ                                                     ~10, ->19
    7    17    >   ECHO                                                     'equal'
         18      > JMP                                                      ->20
    9    19    >   ECHO                                                     'different'
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.21 ms | 1395 KiB | 15 Q