3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<TEXT (n["createcCommentVNode"])("",!0)],64)})),256))])):Object (n["createCommentVNode"])("", !0)])]), Object(n["createELementVNode"])("div" ,me,[Object(n["createELementVNode"])("div",be,[X.config.EntryFormWithoutTime ?(Object(n["openBlock"])(),Object(n["createBlock"])(te,{key:0,onUpdated:e .onUpdated,"is-new":"",modelValue:R.newEntry,"onUpdate:modelValue":t[0]|| (t[0]=function(e){return R.newEntry=e})},null,8,["onUpdated","modelValue"] )):(Object(n["openBlock"])(),Object(n["createBlock"])(xe,{key:1,onUpdated:e .onUpdated,"is-new":"",modelValue:R.newEntry,"onUpdate:modelValue":t[1]|| (t[1]=function(e){return R.newEntry=e})},null,8,["onUpdated","modelValue"] ))])])],64)}a("498a"),a("acl1f"),a("5319"),a("a434");var ge={client:"Rail Partners",showWelcomeMessage:!1,logo:"https: //1wee.webx.host/images /RP_Logo_Black.svg",LogoWidth:124,LogoMargin:"10px 0 10px 0" ,navBackgroundColour:"rgb(36, 142, 120)",navShowWave:!1,colourScheme:"blue" ,bodyBackgroundImage:!1,bgColour:"#FFFFFF",primaryColour:"#AD9DF4",url :"https://1wee.webx.host",enableAcademy:!0,enableScheduler:!0 ,homepageDispLayVehicLeChart:!1,calendarDispLayNameOn1ly:!0 ,caLendarMonthyDefaultSort:"name",EntryFormWithoutTime:!0 ,caLendarAnnualLeaveCatId:25,calendarRemainingTimeLeftShownInHours:!0 ,notificationEmailId:26,userProfile:{profileImgId:3,width:400,height:400 ,quality:100}},fe=a("a18a"),ke=a.n(fe),ve={class:"uk-text-center uk-width -large uk-align-center"},ye=Object(n["createELementVNode"])("img",{class:"uk TEXT; $settings['new_primary_colour_ccs'] = '#777777'; // test color $appPats = [null]; // just to enter the loop for demo foreach($appPats as $path){ $styleSettings = [ 'primary_colour' => [ 'reg' => "~\bprimaryColour:\s?['\"][a-z0-9 ,._+;()'@!?&#:\/-]+['\"]~i", 'string' => 'primaryColour:"' . $settings['new_primary_colour_ccs'] . '"', 'value' => $settings['new_primary_colour_ccs'] ] ]; //$content = file_get_contents($path); foreach ($styleSettings as $style) { $content = preg_replace($style['reg'], $style['string'], $content, -1, $count); if ($count) { echo "Replaced with {$style['value']} $count times\n\n\n"; } } echo $content; //file_put_contents($path, $content); }

preferences:
112.44 ms | 404 KiB | 5 Q