3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT Composition:80% Polyamide, 15% Elastane, 5% Wool. Side length 50.5 cm <---- THIS SHOULDN'T BE MATCHED Value 4,500 <---- THIS SHOULDN'T BE MATCHED EITHER What about $1,234,567.89? Or....1mm one tenth of a millimeter? ό,τι<---- THIS IS A FIXED PHRASE IN GREEK AND THEREFORE SHOULDN'T BE MATCHED Comfort and timeless design characterize the Puma Smash V2 made of suede leather. They can be worn all the time ,being a unique choice for those who want to stand out .Made of rubber.<br />- Softfoam floor<br />- Binding with laces Specs:<br />&bull; Something<br /><br />&bull; Something else<br />&bull; One more Children's Form Champion<br /><br />Children's set that will give a comfortable feeling for endless hours of play.<br />It consists of a cardigan and trousers ,made of soft fabric and have rib cuffs and legs for a better fit.<br /><br />&bull; Normal fit<br /><br />&bull; Cardigan :Rib cuffs, zippers throughout length, high neck, Champion logo <br /> <br />&bull; Pants: Elastic waist with drawstring, ribbed legs, Champion logo. Don't worry,there'll be...more! TEXT; echo preg_replace( '~\s*(?:(?:\.\d+|\d{1,3}(?:,\d{3})+|ό,τι|<br\s*/>)(*SKIP)(*FAIL)|(\.{3}|[:,.]))\s*~', '$1 ', $text );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qE13t
function name:  (null)
number of ops:  8
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Composition%3A80%25+Polyamide%2C+++15%25+Elastane%2C+5%25+Wool.%0ASide+length+50.5+cm+%3C----+THIS+SHOULDN%27T+BE+MATCHED%0AValue+4%2C500+%3C----+THIS+SHOULDN%27T+BE+MATCHED+EITHER%0A%0AWhat+about+%241%2C234%2C567.89%3F%0AOr....1mm+one+tenth+of+a+millimeter%3F%0A%0A%CF%8C%2C%CF%84%CE%B9%3C----+THIS+IS+A+FIXED+PHRASE+IN+GREEK+AND+THEREFORE+SHOULDN%27T+BE+MATCHED%0AComfort+and+timeless+design+characterize+the+Puma+Smash+V2+made+of+suede+leather.+They+can+be+worn+all+the+time+%2Cbeing+a+unique+choice+for+those+who+want+to+stand+out+.Made+of+rubber.%3Cbr+%2F%3E-+Softfoam+floor%3Cbr+%2F%3E-+Binding+with+laces%0A%0ASpecs%3A%3Cbr+%2F%3E%26bull%3B+Something%3Cbr+%2F%3E%3Cbr+%2F%3E%26bull%3B+Something+else%3Cbr+%2F%3E%26bull%3B+One+more%0A%0AChildren%27s+Form+Champion%3Cbr+%2F%3E%3Cbr+%2F%3EChildren%27s+set+that+will+give+a+comfortable+feeling+for+endless+hours+of+play.%3Cbr+%2F%3EIt+consists+of+a+cardigan+and+trousers+%2Cmade+of+soft+fabric+and+have+rib+cuffs+and+legs+for+a+better+fit.%3Cbr+%2F%3E%3Cbr+%2F%3E%26bull%3B+Normal+fit%3Cbr+%2F%3E%3Cbr+%2F%3E%26bull%3B+Cardigan++%3ARib+cuffs%2C+zippers+throughout+length%2C+high+neck%2C+Champion+logo+%3Cbr+%2F%3E+%3Cbr+%2F%3E%26bull%3B+Pants%3A+Elastic+waist+with+drawstring%2C+ribbed+legs%2C+Champion+logo.+Don%27t+worry%2Cthere%27ll+be...more%21'
   19     1        INIT_FCALL                                               'preg_replace'
   20     2        SEND_VAL                                                 '%7E%5Cs%2A%28%3F%3A%28%3F%3A%5C.%5Cd%2B%7C%5Cd%7B1%2C3%7D%28%3F%3A%2C%5Cd%7B3%7D%29%2B%7C%CF%8C%2C%CF%84%CE%B9%7C%3Cbr%5Cs%2A%2F%3E%29%28%2ASKIP%29%28%2AFAIL%29%7C%28%5C.%7B3%7D%7C%5B%3A%2C.%5D%29%29%5Cs%2A%7E'
   21     3        SEND_VAL                                                 '%241+'
   22     4        SEND_VAR                                                 !0
   19     5        DO_ICALL                                         $2      
   22     6        ECHO                                                     $2
   23     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
261.72 ms | 1004 KiB | 14 Q