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), $str2); if ($str3 == $str1) { echo "equal"; } else { echo $str3."|different|".$str1; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/djBHld
function name:  (null)
number of ops:  22
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        SEND_VAR_NO_REF_EX                                       $6
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $7      
         13        ASSIGN                                                   !2, $7
    6    14        IS_EQUAL                                                 !2, !0
         15      > JMPZ                                                     ~9, ->18
    7    16    >   ECHO                                                     'equal'
         17      > JMP                                                      ->21
    9    18    >   CONCAT                                           ~10     !2, '%7Cdifferent%7C'
         19        CONCAT                                           ~11     ~10, !0
         20        ECHO                                                     ~11
   10    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.12 ms | 1395 KiB | 15 Q