3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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));
based on aYWQT
Finding entry points
Branch analysis from position: 0
Jump found. 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                                               'iconv'
        10        SEND_VAL                                                 'UTF-8'
        11        SEND_VAL                                                 'Windows-1252'
        12        SEND_VAR                                                 !2
        13        DO_ICALL                                         $8      
        14        ECHO                                                     $8
        15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0