3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "Jeanâ€Paul"; $str2 = "Jean-Paul"; echo mb_detect_encoding($str2); echo utf8_decode($str1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aWURi
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str1, !1 = $str2
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                                               'mb_detect_encoding'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $4      
          5        ECHO                                                     $4
    5     6        INIT_FCALL                                               'utf8_decode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ECHO                                                     $5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.08 ms | 1394 KiB | 17 Q