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 style="font-size: 10.0pt; color: red;"> </b></li> </ol>'; $regex = '/<li[^>]*>(?:\s*|<span[^>]*>\s*<\/span>)<\/li>/'; $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.0110.00916.94
8.5.00.0040.00520.05
8.4.160.0140.00823.84
8.4.150.0030.00014.05
8.4.140.0130.00817.56
8.4.130.0140.00717.93
8.4.120.0110.00720.60
8.4.110.0140.00722.11
8.4.100.0120.00917.63
8.4.90.0130.00820.49
8.4.80.0080.00918.74
8.4.70.0070.00618.81
8.4.60.0100.01218.64
8.4.50.0110.00624.28
8.4.40.0100.01017.73
8.4.30.0170.00020.73
8.4.20.0040.01119.87
8.4.10.0080.00019.17
8.3.280.0110.00818.49
8.3.270.0100.01016.60
8.3.260.0120.00716.69
8.3.250.0110.00918.92
8.3.240.0100.00916.60
8.3.230.0090.01016.81
8.3.220.0070.00118.97
8.3.210.0070.00818.62
8.3.200.0050.00416.63
8.3.190.0130.00617.16
8.3.180.0130.00718.73
8.3.170.0130.00616.55
8.3.160.0070.01020.73
8.3.150.0080.01116.63
8.3.140.0030.00716.79
8.3.130.0050.00318.48
8.3.120.0130.00718.81
8.3.110.0090.00616.81
8.3.100.0150.01937.54
8.3.90.0140.00937.54
8.3.80.0230.01237.54
8.3.70.0190.01337.54
8.3.60.0210.00437.54
8.3.50.0140.01037.54
8.3.40.0160.00437.54
8.3.30.0210.00037.54
8.3.20.0200.00037.54
8.3.10.0180.00337.54
8.3.00.0190.00337.54
8.2.290.0090.00916.71
8.2.280.0120.00920.24
8.2.270.0130.00716.72
8.2.260.0090.00918.24
8.2.250.0160.00316.57
8.2.240.0060.01017.29
8.2.230.0090.00420.94
8.2.220.0120.00637.54
8.2.210.0160.00537.54
8.2.200.0180.00437.54
8.2.190.0160.00537.54
8.2.180.0150.00637.54
8.2.170.0240.00037.54
8.2.160.0230.00037.54
8.2.150.0190.00337.54
8.2.140.0210.00437.54
8.2.130.0200.00337.54
8.2.120.0230.00037.54
8.2.110.0170.00737.54
8.2.100.0210.00337.54
8.2.90.0130.00937.54
8.2.80.0210.00037.54
8.2.70.0150.00737.54
8.2.60.0170.00437.54
8.2.50.0150.00737.54
8.2.40.0140.00737.54
8.2.30.0110.01137.54
8.2.20.0180.00437.54
8.2.10.0170.00337.54
8.2.00.0150.00837.54
8.1.330.0120.00716.31
8.1.320.0090.00616.41
8.1.310.0080.00016.23
8.1.300.0090.00019.61
8.1.290.0130.00937.54
8.1.280.0140.00737.54
8.1.270.0110.01137.54
8.1.260.0170.00637.54
8.1.250.0170.00737.54
8.1.240.0140.00737.54
8.1.230.0140.00837.54
8.1.220.0100.01037.54
8.1.210.0170.00337.54
8.1.200.0160.00537.54
8.1.190.0190.00037.54
8.1.180.0150.00637.54
8.1.170.0160.00437.54
8.1.160.0140.00837.54
8.1.150.0160.00537.54
8.1.140.0130.00737.54
8.1.130.0120.00937.54
8.1.120.0120.01237.54
8.1.110.0210.00437.54
8.1.100.0200.00337.54
8.1.90.0240.00037.54
8.1.80.0160.00637.54
8.1.70.0150.00637.54
8.1.60.0220.00037.54
8.1.50.0160.00837.54
8.1.40.0170.00637.54
8.1.30.0160.00837.54
8.1.20.0150.00837.54
8.1.10.0180.00437.54
8.1.00.0110.01137.54

preferences:
39.15 ms | 403 KiB | 5 Q