3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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(strpos($substituir[$i],".")) { $substituir[$i] = '/' . $substituir[$i] . '/i'; echo '<p>'.$substituir[i].'</p>'; } else { $substituir[$i] = '#\b(' . $substituir[$i] . ')\b#i'; } } //echo preg_replace($substituir,$novo,'CELTA SPIRIT/ LT 1.0 MPFI 8V FLEXP. 5P');
Output for 5.3.0 - 7.1.0
Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p>
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.2.17
Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p> Notice: Use of undefined constant i - assumed 'i' in /in/R1T9Y on line 10 Notice: Undefined index: i in /in/R1T9Y on line 10 <p></p>
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/R1T9Y on line 16
Process exited with code 255.