3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sir_title1 = array("ă", "Ă", "î", "Î", "ş", "ș", "Ş", "ţ", "Ţ", "â", "Â", "„", "“", " ", ",", ".", "”", "«", "»", "–", "?"); $sir_title2 = array("a", "A", "i", "I", "s", "s", "S", "t", "T", "a", "A", "", "", "-", "-", "-", "", "", "", "-", ""); $string = "Francezul care a făcut aproape 9 miliarde într-un an la Botoșani, a ciocănit într-un hotel la porțile raiului – VIDEO & GALERIE FOTO"; //print (str_replace($sir_title1, $sir_title2, $string)); $string= mb_convert_encoding($string, 'UTF-8', 'UTF-8'); print (iconv('UTF-8', 'Windows-1252', $string));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2pR6t
function name:  (null)
number of ops:  16
compiled vars:  !0 = $sir_title1, !1 = $sir_title2, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2        ASSIGN                                                   !2, 'Francezul+care+a+f%C4%83cut+aproape+9+miliarde+%C3%AEntr-un+an+la+Boto%C8%99ani%2C+a+cioc%C4%83nit+%C3%AEntr-un+hotel+la+por%C8%9Bile+raiului+%E2%80%93+VIDEO+%26+GALERIE+FOTO'
   11     3        INIT_FCALL                                               'mb_convert_encoding'
          4        SEND_VAR                                                 !2
          5        SEND_VAL                                                 'UTF-8'
          6        SEND_VAL                                                 'UTF-8'
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   12     9        INIT_FCALL_BY_NAME                                       'iconv'
         10        SEND_VAL_EX                                              'UTF-8'
         11        SEND_VAL_EX                                              'Windows-1252'
         12        SEND_VAR_EX                                              !2
         13        DO_FCALL                                      0  $8      
         14        ECHO                                                     $8
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.03 ms | 1394 KiB | 15 Q