3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sku = "<div class=\"product-single__description rte\" itemprop=\"description\">\n {{ product.description }}\n </div>"; $string = preg_replace('/(?<=(.))/', "\n\nhello", $sku); echo $string;
based on G4l39
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0rc3
< hellod helloi hellov hello helloc hellol helloa hellos hellos hello= hello" hellop hellor helloo hellod hellou helloc hellot hello- hellos helloi hellon hellog hellol helloe hello_ hello_ hellod helloe hellos helloc hellor helloi hellop hellot helloi helloo hellon hello hellor hellot helloe hello" hello helloi hellot helloe hellom hellop hellor helloo hellop hello= hello" hellod helloe hellos helloc hellor helloi hellop hellot helloi helloo hellon hello" hello> hello hello hello hello hello hello hello hello hello hello hello{ hello{ hello hellop hellor helloo hellod hellou helloc hellot hello. hellod helloe hellos helloc hellor helloi hellop hellot helloi helloo hellon hello hello} hello} hello hello hello hello hello hello hello hello hello< hello/ hellod helloi hellov hello> hello