3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "magnet sfdu baserate sfdurate magnetrate porate backsiderate listrate usecustomrate custbaserate custsfdurate custmagnetrate custlogorate custbacksiderate custlistrate backside weight layout logo list listtype inventory notes active monthlyavg months poinfo prepayment taxrate custtaxrate soldavg termination salesrepfirst salesreplast salesrepcode servicerepfirst servicereplast servicerepcode dealerrate usemasteracct masteracctid upcharge copychgcode website depositamt graphicamt holddate canceldate holdflag pmttype certterm usedefaultcertterm frontgraphic backgraphic mastergraphicacct usemastergraphic magnetflag sfduflag modificationdate contractdate cancelled flatratebilling flatrate respondentlist respondentrate twotierbilling tagalongrate oticdescription splitzips certtermtext loyaltyflag webconfid pocount pending waiting rejected sub_svcs_tier billcontactfirst billcontactlast billphone billfax billemail crrtrate crrt status"; $str = str_replace("\t", " ", $str); $str = str_replace(" ", " ", $str); $chunks = explode(" ", $str); foreach($chunks as $k=>$v) if(empty($v)) unset($chunks[$k]); echo '"'.implode('", "', $chunks).'"';
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
"magnet", "sfdu", "baserate", "sfdurate", "magnetrate", "porate", "backsiderate", "listrate", "usecustomrate", "custbaserate", "custsfdurate", "custmagnetrate", "custlogorate", "custbacksiderate", "custlistrate", "backside", "weight", "layout", "logo", "list", "listtype", "inventory", "notes", "active", "monthlyavg", "months", "poinfo", "prepayment", "taxrate", "custtaxrate", "soldavg", "termination", "salesrepfirst", "salesreplast", "salesrepcode", "servicerepfirst", "servicereplast", "servicerepcode", "dealerrate", "usemasteracct", "masteracctid", "upcharge", "copychgcode", "website", "depositamt", "graphicamt", "holddate", "canceldate", "holdflag", "pmttype", "certterm", "usedefaultcertterm", "frontgraphic", "backgraphic", "mastergraphicacct", "usemastergraphic", "magnetflag", "sfduflag", "modificationdate", "contractdate", "cancelled", "flatratebilling", "flatrate", "respondentlist", "respondentrate", "twotierbilling", "tagalongrate", "oticdescription", "splitzips", "certtermtext", "loyaltyflag", "webconfid", "pocount", "pending", "waiting", "rejected", "sub_svcs_tier", "billcontactfirst", "billcontactlast", "billphone", "billfax", "billemail", "crrtrate", "crrt", "status"

preferences:
208.56 ms | 406 KiB | 237 Q