<?php
$substituir = array('FURG.','MEC.','MEC','AUT.','AUT','EXEC.','CONV.','SED.','INTERC.','EXPRES.','CLASS.','SED ','HAT.','PREM.','F.POWER','POW.','FLEXP.','ADVANT.','ECONOF.','ECONOFLEX','EXPRES.','TIP.','COMF.','COMF','T.FLEX','T. FLEX','TOT.FLEX','T. FIELD','TIPTRON','HIGHLI.','I MOTION','I-MOTI.','TIPTR','STRONIC','LUG.','EXCLUS.','EXCL.','SEDÃ','C.STYLE','C.PLUS','C./','LIMIT.','ELEG.','KOMP.','AVANTGARD','TOUR.','EXECUT.','AVANGARDE','EVOL.','EVOLUT.','INT.','BLIND.','INTERC.','CUPÊ','CUPÉ','COUPÊ','SED.','PRIV.','EXPRES.','EXP.','RANGE R.EVOQUE','DISCOVERY4','RANGE R.','FREELANDER2');
$novo = array('FURGÃO','MANUAL','MANUAL','AUTOMÁTICO','AUTOMÁTICO','EXECUTIVE','CONVERSÍVEL','SEDAN','INTERCOOLER','EXPRESSION','CLASSIC','SEDAN ','HATCH','PREMIUM','FLEXPOWER','POWER','FLEXPOWER','ADVANTAGE','ECONO.FLEX','ECONO.FLEX','EXPRESSION','TIPTRONIC','COMFORTLINE','COMFORTLINE','TOTAL FLEX','TOTAL FLEX','TOTAL FLEX','TRACK & FIELD','TIPTRONIC','HIGHLINE','I-MOTION','I-MOTION','TIPTRONIC','S-TRONIC','LUGARES','EXCLUSIVE','EXCLUSIVE','SEDAN','COMFORT STYLE','COMFORT PLUS','COMFORT/','LIMITED','ELEGANCE','KOMPRESSOR','AVANTGARDE','TOURING','EXECUTIVE','AVANTGARDE','EVOLUTION','EVOLUTION','INTERCOOLER','BLINDADO','INTERCOOLER','COUPÉ','COUPÉ','COUPÉ','SEDAN','PRIVILÈGE','EXPRESSION','EXPRESSION','RANGE ROVER EVOQUE','DISCOVERY 4','RANGE ROVER','FREELANDER 2');
for($i = 0; $i <count($substituir); $i++){
if(preg_match("/./",$substituir[$i]))
{
$substituir[$i] = '#/' . $substituir[$i]. '/#i';
echo $substituir[$i];
} else {
$substituir[$i] = '#\b(' . $substituir[$i] . ')\b#i';
echo $substituir[$i];
}
}
echo preg_replace($substituir,$novo,"CORSA SED CLASS.LIFE FLEXPOWER");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 4
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 4
Branch analysis from position: 29
Branch analysis from position: 4
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 4
Branch analysis from position: 29
Branch analysis from position: 4
filename: /in/mKTjR
function name: (null)
number of ops: 36
compiled vars: !0 = $substituir, !1 = $novo, !2 = $i
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
2 0 E > ASSIGN !0, <array>
3 1 ASSIGN !1, <array>
5 2 ASSIGN !2, 0
3 > JMP ->26
6 4 > INIT_FCALL 'preg_match'
5 SEND_VAL '%2F.%2F'
6 FETCH_DIM_R ~6 !0, !2
7 SEND_VAL ~6
8 DO_ICALL $7
9 > JMPZ $7, ->18
8 10 > FETCH_DIM_R ~9 !0, !2
11 CONCAT ~10 '%23%2F', ~9
12 CONCAT ~11 ~10, '%2F%23i'
13 ASSIGN_DIM !0, !2
14 OP_DATA ~11
9 15 FETCH_DIM_R ~12 !0, !2
16 ECHO ~12
17 > JMP ->25
11 18 > FETCH_DIM_R ~14 !0, !2
19 CONCAT ~15 '%23%5Cb%28', ~14
20 CONCAT ~16 ~15, '%29%5Cb%23i'
21 ASSIGN_DIM !0, !2
22 OP_DATA ~16
12 23 FETCH_DIM_R ~17 !0, !2
24 ECHO ~17
5 25 > PRE_INC !2
26 > COUNT ~19 !0
27 IS_SMALLER !2, ~19
28 > JMPNZ ~20, ->4
16 29 > INIT_FCALL 'preg_replace'
30 SEND_VAR !0
31 SEND_VAR !1
32 SEND_VAL 'CORSA+SED+CLASS.LIFE+FLEXPOWER'
33 DO_ICALL $21
34 ECHO $21
35 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
157.87 ms | 1400 KiB | 17 Q