3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'bla bla </container> e <container style="autore"> bla bla bla'; $value = preg_replace('#[\n\N]?([a-z]+)[\n\N]?<container style="autore">#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.0120.00925.92
8.3.50.0060.00925.92
8.3.40.0120.00625.92
8.2.180.0070.00725.92
8.2.170.0150.00625.92
8.1.280.0090.00925.92
7.4.10.0230.00816.40
7.4.00.0090.00915.64
7.3.130.0190.01216.34
7.3.120.0090.01015.75
7.3.110.0190.01116.25
7.3.100.0230.00716.21
7.3.90.0190.00816.60
7.3.80.0120.01216.48
7.3.70.0180.01116.25
7.3.60.0240.00816.48
7.3.50.0190.00516.32
7.3.40.0250.00916.46
7.3.30.0160.01416.48
7.3.20.0140.01718.19
7.3.10.0280.00718.29
7.3.00.0270.00318.17
7.2.260.0160.01116.42
7.2.250.0110.01716.61
7.2.240.0180.00916.52
7.2.230.0130.01716.47
7.2.220.0110.01816.34
7.2.210.0240.00716.54
7.2.200.0150.01216.39
7.2.190.0240.01216.52
7.2.180.0160.00816.51
7.2.170.0280.00516.43
7.2.160.0150.01516.43
7.2.150.0190.01518.34
7.2.140.0150.01418.26
7.2.130.0120.00413.29
7.2.120.0250.00618.35
7.2.110.0130.01818.28
7.2.100.0190.01218.42
7.2.90.0240.00818.36
7.2.80.0140.01818.30
7.2.70.0260.00618.38
7.2.60.0150.00717.78
7.2.50.0270.01317.51
7.2.40.0200.01118.45
7.2.30.0170.01318.43
7.2.20.0160.01318.35
7.2.10.0170.01318.21
7.2.00.0130.01718.39
7.1.330.0150.01217.44
7.1.320.0150.01217.46
7.1.310.0100.01517.46
7.1.300.1170.01115.37
7.1.290.0960.01915.61
7.1.280.0220.00417.43
7.1.270.0150.01217.44
7.1.260.0110.01717.36
7.1.250.0160.01117.38
7.1.240.0130.01017.31
7.1.230.0200.00317.31
7.1.220.0120.01417.23
7.1.210.0210.00817.11
7.1.200.0050.01116.64
7.1.190.0170.01217.26
7.1.180.0100.01417.35
7.1.170.0210.00917.18
7.1.160.0150.01117.25
7.1.150.0240.00317.20
7.1.140.0170.00817.22
7.1.130.0180.00917.22
7.1.120.0250.00317.29
7.1.110.0120.01317.40
7.1.100.0160.01117.39
7.1.90.0160.01217.21
7.1.80.0140.01017.40
7.1.70.0110.00517.20
7.1.60.0160.01018.36
7.1.50.0170.00917.21
7.1.40.0170.01017.26
7.1.30.0230.00617.28
7.1.20.0190.01117.46
7.1.10.0100.01917.29
7.1.00.0090.03119.90
7.0.330.0140.01016.95
7.0.320.0140.01117.13
7.0.310.0190.00916.80
7.0.300.0200.00917.23
7.0.290.0130.01317.03
7.0.280.0230.00416.87
7.0.270.0150.01116.96
7.0.260.0170.00717.14
7.0.250.0150.00917.17
7.0.240.0060.01917.17
7.0.230.0170.01117.20
7.0.220.0140.01317.11
7.0.210.0100.01517.01
7.0.200.0130.00416.90
7.0.190.0150.00817.15
7.0.180.0140.01417.00
7.0.170.0160.01216.70
7.0.160.0190.00917.20
7.0.150.0110.01616.91
7.0.140.0120.03819.46
7.0.130.0040.02316.85
7.0.120.0060.02017.13
7.0.110.0170.01117.06
7.0.100.0250.04418.49
7.0.90.0080.03418.53
7.0.80.0150.03718.53
7.0.70.0300.02118.40
7.0.60.0090.04718.50
7.0.50.0100.04716.80
7.0.40.0120.02916.72
7.0.30.0050.03717.54
7.0.20.0140.02917.57
7.0.10.0130.02717.51
7.0.00.0090.03317.56
5.6.400.0220.00515.74
5.6.390.0190.01116.01
5.6.380.0160.01115.92
5.6.370.0170.00916.04
5.6.360.0120.01615.69
5.6.350.0130.01315.83
5.6.340.0150.01515.82
5.6.330.0200.01015.83
5.6.320.0190.01015.61
5.6.310.0230.00815.87
5.6.300.0180.00915.57
5.6.290.0140.01415.96
5.6.280.0070.04518.37
5.6.270.0160.01015.70
5.6.260.0090.01915.73
5.6.250.0160.04118.23
5.6.240.0190.04018.20
5.6.230.0080.04918.28
5.6.220.0120.03318.21
5.6.210.0090.03218.24
5.6.200.0140.04318.45
5.6.190.0170.03918.42
5.6.180.0110.04217.20
5.6.170.0110.04518.35
5.6.160.0140.02718.46
5.6.150.0150.03318.31
5.6.140.0130.04718.48
5.6.130.0120.04418.46
5.6.120.0140.02918.36
5.6.110.0140.03318.43
5.6.100.0080.03918.51
5.6.90.0070.02718.46
5.6.80.0130.02318.05
5.6.70.0030.02918.00
5.6.60.0130.02318.07
5.6.50.0110.02518.11
5.6.40.0110.02418.19
5.6.30.0070.03217.96
5.6.20.0100.02518.04
5.6.10.0090.02817.96
5.6.00.0100.02518.03
5.5.380.0160.04218.13
5.5.370.0080.04718.12
5.5.360.0100.04516.80
5.5.350.0050.04616.80
5.5.340.0130.04418.36
5.5.330.0100.04117.00
5.5.320.0120.04518.31
5.5.310.0080.03618.25
5.5.300.0200.04118.30
5.5.290.0150.04418.29
5.5.280.0070.04317.04
5.5.270.0090.03218.22
5.5.260.0130.03917.09
5.5.250.0080.02216.95
5.5.240.0100.02618.04
5.5.230.0080.02718.01
5.5.220.0100.02317.93
5.5.210.0110.02517.89
5.5.200.0120.02317.94
5.5.190.0150.03717.94
5.5.180.0130.02318.07
5.5.170.0150.01215.56
5.5.160.0080.02817.87
5.5.150.0120.02017.99
5.5.140.0090.02617.72
5.5.130.0130.02217.75
5.5.120.0150.02217.94
5.5.110.0100.02617.91
5.5.100.0130.02018.01
5.5.90.0100.02417.86
5.5.80.0150.01917.90
5.5.70.0130.02317.88
5.5.60.0100.02117.88
5.5.50.0130.01817.96
5.5.40.0120.02317.73
5.5.30.0120.02217.83
5.5.20.0060.02817.86
5.5.10.0100.01716.71
5.5.00.0080.02517.77
5.4.450.0100.04816.19
5.4.440.0100.02516.29
5.4.430.0080.04016.37
5.4.420.0050.04416.33
5.4.410.0120.02016.13
5.4.400.0060.02216.16
5.4.390.0090.02416.26
5.4.380.0040.02416.13
5.4.370.0040.02616.18
5.4.360.0090.02016.26
5.4.350.0070.02816.13
5.4.340.0080.02916.19
5.4.330.0080.00813.29
5.4.320.0050.02416.05
5.4.310.0100.03116.12
5.4.300.0080.02716.21
5.4.290.0110.01716.19
5.4.280.0050.02516.16
5.4.270.0020.02916.12
5.4.260.0110.01816.19
5.4.250.0080.02716.11
5.4.240.0050.03216.17
5.4.230.0100.01616.19
5.4.220.0050.02116.12
5.4.210.0090.02116.17
5.4.200.0150.01516.10
5.4.190.0130.01816.11
5.4.180.0080.02016.25
5.4.170.0070.02316.12
5.4.160.0030.02516.14
5.4.150.0060.02716.16
5.4.140.0020.02614.83
5.4.130.0110.02414.77
5.4.120.0040.02314.82
5.4.110.0060.02414.75
5.4.100.0090.02614.77
5.4.90.0140.03014.76
5.4.80.0120.04014.71
5.4.70.0090.03914.81
5.4.60.0060.04414.78
5.4.50.0070.04214.76
5.4.40.0020.03714.76
5.4.30.0100.03214.82
5.4.20.0130.03614.78
5.4.10.0070.04414.82
5.4.00.0040.04214.52
5.3.290.0080.02313.98
5.3.280.0030.02513.90
5.3.270.0070.02713.95
5.3.260.0100.02213.92
5.3.250.0080.02413.92
5.3.240.0060.02413.95
5.3.230.0080.01913.86
5.3.220.0070.02213.92
5.3.210.0070.02313.91
5.3.200.0120.02713.92
5.3.190.0080.03113.90
5.3.180.0110.03513.92
5.3.170.0100.03613.84
5.3.160.0110.04013.92
5.3.150.0040.04313.85
5.3.140.0030.03013.92
5.3.130.0140.03213.84
5.3.120.0100.04213.84
5.3.110.0110.03813.91
5.3.100.0100.03813.59
5.3.90.0080.03813.61
5.3.80.0120.02913.63
5.3.70.0100.04213.65
5.3.60.0110.03413.62
5.3.50.0120.03813.50
5.3.40.0120.04013.60
5.3.30.0090.02713.57
5.3.20.0110.03513.42
5.3.10.0110.03113.44
5.3.00.0120.02113.45
5.2.170.0030.04311.20
5.2.160.0000.04711.14
5.2.150.0070.06010.99
5.2.140.0100.05311.16
5.2.130.0030.03711.02
5.2.120.0030.03711.16
5.2.110.0000.04310.95
5.2.100.0130.05011.06
5.2.90.0000.03311.09
5.2.80.0070.06010.94
5.2.70.0000.03311.16
5.2.60.0070.05011.07
5.2.50.0070.06011.08
5.2.40.0070.05311.02
5.2.30.0070.03310.99
5.2.20.0000.06710.95
5.2.10.0100.04310.88
5.2.00.0030.06010.78
5.1.60.0000.05310.00
5.1.50.0000.0579.99
5.1.40.0030.0539.99
5.1.30.0070.05010.20
5.1.20.0070.05010.36
5.1.10.0070.04310.06
5.1.00.0070.05010.08
5.0.50.0000.0378.57
5.0.40.0130.0378.51
5.0.30.0000.0508.51
5.0.20.0130.0338.51
5.0.10.0030.0478.51
5.0.00.0070.0608.51
4.4.90.0030.0278.51
4.4.80.0070.0308.51
4.4.70.0030.0338.51
4.4.60.0000.0378.51
4.4.50.0000.0378.51
4.4.40.0000.0338.51
4.4.30.0030.0208.51
4.4.20.0070.0308.51
4.4.10.0030.0338.51
4.4.00.0030.0308.51
4.3.110.0070.0278.51
4.3.100.0070.0308.51
4.3.90.0000.0378.51
4.3.80.0070.0478.51
4.3.70.0000.0208.51
4.3.60.0030.0338.51
4.3.50.0070.0308.51
4.3.40.0030.0538.51
4.3.30.0030.0338.51
4.3.20.0000.0208.51
4.3.10.0030.0278.51
4.3.00.0070.0308.51

preferences:
45.58 ms | 401 KiB | 5 Q