3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contenuto = '<ol style="margin-top: 0cm; margin-bottom: 0cm;"> <li style="margin: 0cm 0cm 0cm 47.6px; text-align: justify; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 0.4px;"><span style="font-size: 10.0pt;">x</span></li> <li style="margin: 0cm 0cm 0cm 47.6px; text-align: justify; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 0.4px;"><span style="font-size: 10.0pt;">y</span></li> <li style="margin: 0cm 0cm 0cm 47.6px; text-align: justify; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 0.4px;"><span style="font-size: 10.0pt;">z</span></li> <li style="margin: 0cm 0cm 0cm 47.6px; text-align: justify; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 0.4px;"></li> <li style="margin: 0cm 0cm 0cm 47.6px; text-align: justify; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 0.4px;"><b><span style="font-size: 10.0pt; color: red;"> </span></b></li> </ol>'; $regex = '/<li[^>]*>(?:\s*|(?:<[^>\/]+[^>]*>\s*<\/[^>]+>)(?:\s*|<\/?\w+[^>]*>\s*))<\/li>/s'; $contenuto = preg_replace($regex, '', $contenuto); print_r($contenuto);

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.10.0120.00716.54
8.5.00.0120.00920.27
8.4.160.0110.01123.79
8.4.150.0020.00014.05
8.4.140.0100.01217.58
8.4.130.0140.00918.06
8.4.120.0130.00824.22
8.4.110.0100.01122.19
8.4.100.0090.01218.06
8.4.90.0070.01319.63
8.4.80.0050.00318.03
8.4.70.0060.00217.95
8.4.60.0090.01118.78
8.4.50.0120.00817.82
8.4.40.0120.00617.76
8.4.30.0060.00920.43
8.4.20.0130.00719.69
8.4.10.0100.01019.42
8.3.280.0110.00818.43
8.3.270.0130.00716.58
8.3.260.0120.00716.67
8.3.250.0100.01018.91
8.3.240.0110.00916.58
8.3.230.0110.00816.83
8.3.220.0120.00717.21
8.3.210.0110.00816.50
8.3.200.0050.00616.58
8.3.190.0020.00619.07
8.3.180.0100.00716.50
8.3.170.0130.00616.60
8.3.160.0090.00917.28
8.3.150.0090.00916.72
8.3.140.0070.01020.64
8.3.130.0080.00018.66
8.3.120.0130.00620.67
8.3.110.0080.00020.94
8.3.100.0380.01037.54
8.3.90.0410.00737.54
8.3.80.0500.00437.54
8.3.70.0370.01237.54
8.3.60.0410.00937.54
8.3.50.0370.00737.54
8.3.40.0180.01837.54
8.3.30.0350.00037.54
8.3.20.0330.01237.54
8.3.10.0240.00937.54
8.3.00.0330.00837.54
8.2.290.0120.00720.46
8.2.280.0100.00618.80
8.2.270.0130.00316.73
8.2.260.0090.00016.66
8.2.250.0000.00816.71
8.2.240.0030.00619.15
8.2.230.0090.00622.58
8.2.220.0170.01237.54
8.2.210.0350.00737.54
8.2.200.0240.01637.54
8.2.190.0300.00837.54
8.2.180.0320.00437.54
8.2.170.0320.01037.54
8.2.160.0310.01237.54
8.2.150.0270.01437.54
8.2.140.0370.00337.54
8.2.130.0380.00637.54
8.2.120.0390.00437.54
8.2.110.0340.01137.54
8.2.100.0310.01637.54
8.2.90.0300.01737.54
8.2.80.0290.01837.54
8.2.70.0310.00337.54
8.2.60.0260.01037.54
8.2.50.0240.00837.54
8.2.40.0150.00437.54
8.2.30.0140.00437.54
8.2.20.0180.00037.54
8.2.10.0180.00037.54
8.2.00.0400.00037.54
8.1.330.0100.00818.11
8.1.320.0100.00516.54
8.1.310.0150.00316.09
8.1.300.0040.00420.13
8.1.290.0400.00437.54
8.1.280.0390.00437.54
8.1.270.0300.01037.54
8.1.260.0330.00937.54
8.1.250.0430.00737.54
8.1.240.0290.00737.54
8.1.230.0160.00337.54
8.1.220.0150.00337.54
8.1.210.0150.00437.54
8.1.200.0090.00937.54
8.1.190.0120.00637.54
8.1.180.0360.00637.54
8.1.170.0110.00737.54
8.1.160.0350.00337.54
8.1.150.0330.00737.54
8.1.140.0260.01337.54
8.1.130.0330.00337.54
8.1.120.0290.01037.54
8.1.110.0330.00737.54
8.1.100.0310.00437.54
8.1.90.0170.00837.54
8.1.80.0340.00737.54
8.1.70.0340.00837.54
8.1.60.0350.01237.54
8.1.50.0430.00437.54
8.1.40.0350.01137.54
8.1.30.0400.00637.54
8.1.20.0350.01337.54
8.1.10.0290.00737.54
8.1.00.0280.01237.54

preferences:
38.09 ms | 403 KiB | 5 Q