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 );

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0170.00520.24
8.4.150.0030.00014.05
8.4.140.0100.01217.77
8.4.130.0130.00718.14
8.4.120.0070.01222.36
8.4.110.0090.01119.89
8.4.100.0130.00817.88
8.4.90.0100.01120.80
8.4.80.0110.00918.92
8.4.70.0040.00522.30
8.4.60.0130.00718.88
8.4.50.0120.00818.50
8.4.40.0100.01017.95
8.4.30.0100.01020.65
8.4.20.0140.00719.74
8.4.10.0000.01019.76
8.3.280.0100.00918.40
8.3.270.0130.00816.55
8.3.260.0130.00616.66
8.3.250.0060.00219.01
8.3.240.0100.00816.84
8.3.230.0110.00816.88
8.3.220.0080.01119.06
8.3.210.0040.00316.84
8.3.200.0040.00416.69
8.3.190.0120.01117.07
8.3.180.0120.00818.86
8.3.170.0080.00018.69
8.3.160.0140.00418.66
8.3.150.0100.01017.18
8.3.140.0120.00320.50
8.3.130.0080.00018.48
8.3.120.0000.00919.07
8.3.110.0060.00320.94
8.3.100.0130.00624.06
8.3.90.0100.01026.77
8.3.80.0090.00016.88
8.3.70.0110.00418.55
8.3.60.0110.00418.31
8.3.50.0070.01019.93
8.3.40.0160.00018.95
8.3.30.0140.00018.88
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.290.0090.01116.80
8.2.280.0120.00618.43
8.2.270.0070.01018.63
8.2.260.0150.00316.91
8.2.250.0110.00418.53
8.2.240.0060.00319.04
8.2.230.0060.00322.58
8.2.220.0190.00037.54
8.2.210.0070.00726.77
8.2.200.0030.00617.00
8.2.190.0140.00016.88
8.2.180.0140.00025.92
8.2.170.0120.00319.22
8.2.160.0080.00622.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0030.00626.16
8.2.120.0000.00726.16
8.2.110.0060.00321.19
8.2.100.0080.00318.09
8.2.90.0000.00817.97
8.2.80.0080.00318.09
8.2.70.0040.00417.75
8.2.60.0040.00418.22
8.2.50.0040.00418.10
8.2.40.0000.00919.29
8.2.30.0040.00417.89
8.2.20.0070.00019.57
8.2.10.0070.00017.93
8.2.00.0040.00419.22
8.1.330.0150.00516.44
8.1.320.0040.00518.20
8.1.310.0000.00716.61
8.1.300.0060.00318.25
8.1.290.0070.00318.88
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00620.91
8.1.230.0070.00422.41
8.1.220.0040.00417.78
8.1.210.0040.00418.91
8.1.200.0090.00017.48
8.1.190.0040.00417.25
8.1.180.0080.00019.04
8.1.170.0040.00418.71
8.1.160.0080.00020.51
8.1.150.0040.00418.78
8.1.140.0060.00317.65
8.1.130.0070.00018.90
8.1.120.0030.00517.51
8.1.110.0050.00217.48
8.1.100.0040.00417.52
8.1.90.0000.00717.50
8.1.80.0040.00417.51
8.1.70.0030.00317.58
8.1.60.0040.00417.65
8.1.50.0040.00417.67
8.1.40.0040.00417.55
8.1.30.0030.00617.81
8.1.20.0000.00817.67
8.1.10.0000.00717.71
8.1.00.0030.00617.60
8.0.300.0000.00720.02
8.0.290.0040.00417.00
8.0.280.0000.00818.58
8.0.270.0000.00717.00
8.0.260.0000.00618.52
8.0.250.0000.00717.11
8.0.240.0070.00017.21
8.0.230.0040.00417.14
8.0.220.0030.00317.03
8.0.210.0000.00716.96
8.0.200.0000.00717.14
8.0.190.0070.00016.99
8.0.180.0110.00017.15
8.0.170.0040.00417.02
8.0.160.0000.00717.14
8.0.150.0000.00816.96
8.0.140.0070.00017.09
8.0.130.0050.00013.48
8.0.120.0050.00313.55
8.0.110.0100.00213.49
8.0.100.0080.00413.51
8.0.90.0100.00313.49
8.0.80.0100.00213.46
8.0.70.0080.00513.44
8.0.60.0080.00613.50
8.0.50.0100.00313.46
8.0.30.0110.00113.42
8.0.20.0060.00613.50
8.0.10.0050.00713.58
8.0.00.0030.00313.63
7.4.330.0050.00015.55
7.4.320.0030.00316.70
7.4.300.0080.00016.80
7.4.290.0080.00016.66
7.4.280.0030.00516.69
7.4.270.0030.00316.75
7.4.260.0000.00613.38
7.4.250.0060.00313.49
7.4.240.0090.00513.49
7.4.230.0120.00213.44
7.4.220.0100.00213.54
7.4.210.0100.00213.45
7.4.200.0090.00413.42
7.4.190.0090.00313.56
7.4.180.0090.00413.49
7.4.160.0070.00613.46
7.4.150.0120.00213.54
7.4.140.0110.00313.42
7.4.130.0080.00513.47
7.4.120.0070.00613.49
7.4.110.0100.00313.44
7.4.100.0100.00313.46
7.4.90.0080.00513.45
7.4.80.0090.00413.38
7.4.70.0110.00313.47
7.4.60.0110.00213.50
7.4.50.0080.00513.38
7.4.40.0080.00413.36
7.4.30.0040.00813.45
7.4.20.0020.00713.35
7.4.10.0090.00013.34
7.4.00.0060.00413.37
7.3.330.0000.00716.25
7.3.320.0080.00113.28
7.3.310.0130.00113.13
7.3.300.0090.00513.17
7.3.290.0040.00813.16
7.3.280.0060.00613.29
7.3.270.0100.00313.15
7.3.260.0070.00513.25
7.3.250.0090.00313.15
7.3.240.0100.00513.20
7.3.230.0090.00513.16
7.3.220.0060.00713.13
7.3.210.0080.00613.11
7.3.200.0090.00413.10
7.3.190.0090.00413.18
7.3.180.0090.00413.20
7.3.170.0050.00713.17
7.3.160.0130.00013.25
7.3.150.0070.00413.14
7.3.140.0090.00413.13
7.3.130.0110.00313.17
7.3.120.0060.00513.09
7.3.110.0060.00613.04
7.3.100.0100.00213.02
7.3.90.0090.00413.52
7.3.80.0080.00313.33
7.3.70.0090.00413.24
7.3.60.0070.00313.23
7.3.50.0110.00213.29
7.3.40.0060.00213.36
7.3.30.0070.00213.35
7.3.20.0050.00415.03
7.3.10.0030.00415.06
7.3.00.0100.00015.06

preferences:
166.39 ms | 403 KiB | 5 Q