3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'bla bla </container> e <container style="autore"> bla bla bla'; $value = preg_replace('#.*>[\s\S]?([a-z]+)[\s\S]?<container style="autore">[\s\S]#m', '\1', $string); echo $value;

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.3.60.0030.01216.63
8.3.50.0110.00522.18
8.3.40.0150.00019.02
8.3.30.0040.01119.15
8.3.20.0070.00020.29
8.3.10.0000.00823.53
8.3.00.0080.00020.82
8.2.180.0120.00916.50
8.2.170.0120.00322.96
8.2.160.0040.01120.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0040.00419.49
8.2.110.0090.00022.33
8.2.100.0040.00818.03
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00317.89
8.2.50.0040.00418.07
8.2.40.0060.00319.84
8.2.30.0040.00418.28
8.2.20.0050.00217.81
8.2.10.0080.00018.14
8.2.00.0040.00419.68
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00718.65
8.1.230.0080.00419.02
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0060.00317.38
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.76
8.1.160.0070.00021.97
8.1.150.0040.00418.79
8.1.140.0040.00417.41
8.1.130.0030.00317.87
8.1.120.0000.00717.39
8.1.110.0020.00517.43
8.1.100.0000.00717.53
8.1.90.0040.00417.41
8.1.80.0000.00717.41
8.1.70.0000.00817.43
8.1.60.0040.00417.67
8.1.50.0050.00317.59
8.1.40.0030.00517.59
8.1.30.0030.00617.63
8.1.20.0090.00017.79
8.1.10.0040.00417.57
8.1.00.0040.00417.44
8.0.300.0070.00018.77
8.0.290.0060.00316.88
8.0.280.0040.00418.47
8.0.270.0000.00717.20
8.0.260.0030.00317.32
8.0.250.0000.00717.10
8.0.240.0070.00017.12
8.0.230.0000.00716.97
8.0.220.0030.00316.92
8.0.210.0000.00716.86
8.0.200.0000.00616.95
8.0.190.0030.00517.06
8.0.180.0030.00516.88
8.0.170.0040.00417.04
8.0.160.0000.00816.79
8.0.150.0070.00016.91
8.0.140.0050.00316.95
8.0.130.0000.00613.40
8.0.120.0000.01116.85
8.0.110.0020.00517.05
8.0.100.0070.00017.02
8.0.90.0000.00817.02
8.0.80.0140.00616.95
8.0.70.0000.00716.98
8.0.60.0000.00716.77
8.0.50.0000.00716.94
8.0.30.0090.01117.03
8.0.20.0080.01117.40
8.0.10.0000.00817.17
8.0.00.0110.01116.84
7.4.330.0000.00515.15
7.4.320.0030.00316.65
7.4.300.0000.00616.66
7.4.290.0040.00416.66
7.4.280.0000.00716.65
7.4.270.0000.00816.59
7.4.260.0000.00716.54
7.4.250.0000.00716.72
7.4.240.0050.00216.65
7.4.230.0070.00016.66
7.4.220.0070.01716.86
7.4.210.0070.01316.74
7.4.200.0040.00416.84
7.4.160.0180.00316.65
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0130.00716.81
7.4.120.0100.00916.61
7.4.110.0030.01316.42
7.4.100.0110.00516.74
7.4.90.0140.00316.61
7.4.80.0110.00719.39
7.4.70.0090.00616.56
7.4.60.0150.00416.61
7.4.50.0060.00316.60
7.4.40.0080.00916.46
7.4.30.0060.01216.71
7.4.00.0040.01115.08
7.3.330.0020.00313.14
7.3.320.0060.00013.19
7.3.310.0070.00016.36
7.3.300.0000.00716.37
7.3.290.0070.00716.36
7.3.280.0070.00816.42
7.3.270.0060.01217.40
7.3.260.0110.01116.66
7.3.250.0040.01216.63
7.3.240.0130.00316.45
7.3.230.0060.01016.42
7.3.210.0110.00516.54
7.3.200.0170.00319.39
7.3.190.0120.00916.37
7.3.180.0060.01016.37
7.3.170.0140.01016.39
7.3.160.0140.00716.54
7.3.120.0080.00914.66
7.3.110.0080.00714.86
7.3.100.0030.01114.87
7.3.90.0070.00714.68
7.3.80.0030.00814.70
7.3.70.0030.01214.85
7.3.60.0040.01114.95
7.3.50.0060.01014.88
7.3.40.0080.00314.87
7.3.30.0020.01214.89
7.3.20.0050.01116.63
7.3.10.0050.00716.84
7.3.00.0080.00616.63
7.2.330.0120.00616.50
7.2.320.0060.01316.64
7.2.310.0030.01416.75
7.2.300.0120.00916.69
7.2.290.0120.00916.57
7.2.240.0060.00915.17
7.2.230.0090.00515.22
7.2.220.0050.01014.91
7.2.210.0060.00815.20
7.2.200.0050.01115.33
7.2.190.0050.01215.09
7.2.180.0050.01415.08
7.2.170.0100.00414.94
7.2.160.0100.00814.95
7.2.150.0070.01117.14
7.2.140.0040.01017.04
7.2.130.0120.00517.17
7.2.120.0080.00716.95
7.2.110.0020.01317.00
7.2.100.0110.00217.04
7.2.90.0070.00617.04
7.2.80.0040.01216.84
7.2.70.0090.00517.02
7.2.60.0050.00917.06
7.2.50.0080.00517.17
7.2.40.0080.00516.85
7.2.30.0070.00917.02
7.2.20.0070.01217.06
7.2.10.0060.00616.85
7.2.00.0110.00617.83
7.1.330.0090.00716.04
7.1.320.0080.00816.08
7.1.310.0050.01116.06
7.1.300.0070.00715.77
7.1.290.0060.00815.80
7.1.280.0090.00415.93
7.1.270.0080.00516.00
7.1.260.0080.00515.80
7.1.250.0110.00215.93
7.1.100.0220.00618.39
7.1.70.0040.00417.40
7.1.60.0100.01019.70
7.1.50.0070.01316.84
7.1.00.0030.07722.49
7.0.200.0030.00616.96
7.0.140.0070.06322.12
7.0.100.0030.08719.89
7.0.90.0000.08319.89
7.0.80.0030.05019.83
7.0.70.0000.09319.93
7.0.60.0270.06319.91
7.0.50.0100.07720.14
7.0.40.0130.07320.03
7.0.30.0100.06019.90
7.0.20.0170.07319.97
7.0.10.0130.07720.04
7.0.00.0130.08020.07
5.6.280.0030.07020.90
5.6.250.0170.07020.60
5.6.240.0030.06720.58
5.6.230.0000.08320.42
5.6.220.0030.06320.59
5.6.210.0030.04720.60
5.6.200.0130.04720.96
5.6.190.0070.07720.88
5.6.180.0170.07721.05
5.6.170.0070.05020.95
5.6.160.0030.08320.97
5.6.150.0130.07320.98
5.6.140.0130.07721.02
5.6.130.0100.07721.11
5.6.120.0070.06020.98
5.6.110.0030.04320.94
5.6.100.0100.04320.98
5.6.90.0100.04721.00
5.6.80.0070.06720.37
5.6.70.0070.04720.34
5.6.60.0230.05320.32
5.6.50.0100.08020.45
5.6.40.0130.07320.37
5.6.30.0000.05320.34
5.6.20.0070.07320.35
5.6.10.0130.07320.40
5.6.00.0100.06020.39
5.5.380.0100.03720.39
5.5.370.0130.04720.41
5.5.360.0070.08020.50
5.5.350.0100.05020.37
5.5.340.0030.08720.82
5.5.330.0130.07020.80
5.5.320.0030.09020.75
5.5.310.0270.04320.71
5.5.300.0070.08320.82
5.5.290.0170.07320.79
5.5.280.0070.05720.77
5.5.270.0000.07320.83
5.5.260.0100.08020.81
5.5.250.0130.08720.63
5.5.240.0000.07319.96
5.5.230.0100.04320.19
5.5.220.0070.08320.23
5.5.210.0130.06720.18
5.5.200.0000.08020.18
5.5.190.0100.06720.07
5.5.180.0030.05020.17
5.5.160.0130.08720.15
5.5.150.0030.05020.16
5.5.140.0130.06320.18
5.5.130.0100.07720.20
5.5.120.0170.06720.02
5.5.110.0130.07720.13
5.5.100.0170.07020.04
5.5.90.0030.07020.09
5.5.80.0100.06319.88
5.5.70.0100.08020.09
5.5.60.0170.06720.09
5.5.50.0170.07019.99
5.5.40.0100.06720.07
5.5.30.0130.03319.96
5.5.20.0130.04019.89
5.5.10.0070.03720.07
5.5.00.0070.04019.89
5.4.450.0100.07319.38
5.4.440.0170.06719.45
5.4.430.0100.07319.37
5.4.420.0000.04719.28
5.4.410.0130.07319.31
5.4.400.0030.04719.15
5.4.390.0030.07319.23
5.4.380.0030.05719.23
5.4.370.0130.07719.04
5.4.360.0170.06318.95
5.4.350.0070.03719.23
5.4.340.0030.08019.10
5.4.320.0030.07718.81
5.4.310.0030.05719.05
5.4.300.0100.07019.07
5.4.290.0030.05319.23
5.4.280.0030.08318.90
5.4.270.0100.06319.13
5.4.260.0070.06319.09
5.4.250.0070.07719.22
5.4.240.0100.07018.95
5.4.230.0030.07719.14
5.4.220.0000.08319.24
5.4.210.0070.04718.95
5.4.200.0000.04319.05
5.4.190.0070.03718.89
5.4.180.0100.03018.95
5.4.170.0000.05018.93
5.4.160.0070.02718.92
5.4.150.0100.02719.21
5.4.140.0100.03016.28
5.4.130.0030.03016.06
5.4.120.0030.03716.07
5.4.110.0030.03716.45
5.4.100.0000.03316.30
5.4.90.0100.04016.38
5.4.80.0030.03716.41
5.4.70.0070.02716.20
5.4.60.0030.03716.32
5.4.50.0030.03716.48
5.4.40.0000.04016.38
5.4.30.0170.02316.20
5.4.20.0100.03316.19
5.4.10.0000.04316.37
5.4.00.0030.03315.75
5.3.290.0030.07714.49
5.3.280.0030.08014.57
5.3.270.0000.04314.61
5.3.260.0170.02314.58
5.3.250.0030.03714.45
5.3.240.0030.03314.56
5.3.230.0070.03714.54
5.3.220.0030.03714.42
5.3.210.0000.03314.54
5.3.200.0000.03714.42
5.3.190.0100.04014.43
5.3.180.0000.04014.38
5.3.170.0000.04014.54
5.3.160.0070.02714.52
5.3.150.0030.03714.51
5.3.140.0000.04014.53
5.3.130.0000.03314.36
5.3.120.0130.02714.50
5.3.110.0130.02714.40
5.3.100.0030.03713.97
5.3.90.0000.03713.96
5.3.80.0000.03713.92
5.3.70.0000.04013.79
5.3.60.0030.03013.96
5.3.50.0100.03013.92
5.3.40.0070.02713.80
5.3.30.0000.04013.90
5.3.20.0030.04013.54
5.3.10.0000.03713.51
5.3.00.0000.03313.57
5.2.170.0030.03010.99
5.2.160.0030.02311.18
5.2.150.0030.02711.13
5.2.140.0070.02711.13
5.2.130.0100.02010.96
5.2.120.0000.03010.89
5.2.110.0100.03011.12
5.2.100.0000.03011.05
5.2.90.0030.02711.16
5.2.80.0030.02710.91
5.2.70.0030.03011.09
5.2.60.0000.02711.04
5.2.50.0030.02711.07
5.2.40.0000.03310.83
5.2.30.0070.06011.04
5.2.20.0070.05310.95
5.2.10.0070.04710.71
5.2.00.0030.04310.62
5.1.60.0030.05310.02
5.1.50.0000.03310.01
5.1.40.0000.03010.00
5.1.30.0030.04710.38
5.1.20.0070.05310.25
5.1.10.0030.04710.07
5.1.00.0070.05310.06
5.0.50.0030.0208.53
5.0.40.0030.0378.45
5.0.30.0070.0638.28
5.0.20.0000.0238.28
5.0.10.0070.0378.24
5.0.00.0030.0308.14
4.4.90.0000.0137.22
4.4.80.0030.0137.22
4.4.70.0000.0377.22
4.4.60.0000.0207.22
4.4.50.0070.0177.22
4.4.40.0000.0537.22
4.4.30.0030.0377.22
4.4.20.0030.0337.22
4.4.10.0070.0137.22
4.4.00.0030.0537.22
4.3.110.0030.0307.22
4.3.100.0070.0207.22
4.3.90.0000.0377.22
4.3.80.0030.0537.22
4.3.70.0000.0337.22
4.3.60.0070.0177.22
4.3.50.0030.0137.22
4.3.40.0030.0377.22
4.3.30.0000.0177.22
4.3.20.0000.0407.22
4.3.10.0000.0137.22
4.3.00.0030.0137.22

preferences:
52.92 ms | 401 KiB | 5 Q