3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = '<div><div><iframe width="1280" height="720" src="//www.youtube.com/embed/NKvxWMsGW9E?rel=0" frameborder="0" allowfullscreen></iframe></div></div><div>this div is ok</div>'; $_content = preg_replace('#(?:<(div|span)[^>]*>[\s]*)*(?P<content><iframe[\s]*([^>]+)>[\s]*<\/iframe[^>]*>)(?:[\s]*<(embed|script)[^>]*>[^<]*<\/(embed|script)[^>]*>[\s]*)*(?:<\/(?:div|span)[^>]*>)*#iu', '', $_content); var_dump($matches);

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.00316.88
8.3.50.0100.00923.13
8.3.40.0110.00419.04
8.3.30.0100.00318.92
8.3.20.0070.00020.38
8.3.10.0080.00023.58
8.3.00.0060.00319.38
8.2.180.0000.01516.75
8.2.170.0090.00622.96
8.2.160.0150.00020.38
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0080.00020.95
8.2.110.0060.00322.20
8.2.100.0000.01318.16
8.2.90.0030.00519.22
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0090.00017.80
8.2.50.0040.00418.07
8.2.40.0050.00320.01
8.2.30.0040.00718.12
8.2.20.0000.00818.11
8.2.10.0040.00418.07
8.2.00.0070.00018.10
8.1.280.0110.00725.92
8.1.270.0030.00624.04
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.74
8.1.230.0120.00019.03
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0090.00317.22
8.1.190.0050.00317.47
8.1.180.0050.00318.10
8.1.170.0040.00418.70
8.1.160.0000.00722.04
8.1.150.0040.00418.91
8.1.140.0040.00417.53
8.1.130.0000.00717.91
8.1.120.0050.00217.46
8.1.110.0050.00217.61
8.1.100.0000.00717.47
8.1.90.0000.00817.55
8.1.80.0030.00517.48
8.1.70.0000.00717.41
8.1.60.0040.00417.69
8.1.50.0000.00817.55
8.1.40.0080.00017.62
8.1.30.0050.00317.78
8.1.20.0000.00817.61
8.1.10.0030.00617.66
8.1.00.0040.00417.63
8.0.300.0050.00318.77
8.0.290.0040.00417.00
8.0.280.0040.00418.49
8.0.270.0030.00317.15
8.0.260.0000.00717.23
8.0.250.0070.00017.06
8.0.240.0000.00817.20
8.0.230.0000.00817.21
8.0.220.0070.00017.07
8.0.210.0060.00317.20
8.0.200.0060.00017.15
8.0.190.0000.00817.20
8.0.180.0040.00417.06
8.0.170.0070.00017.04
8.0.160.0080.00017.05
8.0.150.0070.00017.16
8.0.140.0040.00416.95
8.0.130.0060.00013.57
8.0.120.0080.00017.20
8.0.110.0040.00417.14
8.0.100.0040.00417.13
8.0.90.0080.00017.25
8.0.80.0090.00617.22
8.0.70.0050.00217.19
8.0.60.0040.00417.17
8.0.50.0070.00017.24
8.0.30.0150.00517.29
8.0.20.0110.00817.40
8.0.10.0000.00717.23
8.0.00.0060.01117.09
7.4.330.0050.00015.04
7.4.320.0060.00016.88
7.4.300.0000.00616.82
7.4.290.0000.00716.89
7.4.280.0030.00516.72
7.4.270.0070.00016.73
7.4.260.0040.00316.81
7.4.250.0000.00716.60
7.4.240.0030.00416.70
7.4.230.0030.00316.83
7.4.220.0140.00616.85
7.4.210.0130.00716.87
7.4.200.0040.00416.68
7.4.160.0080.00816.55
7.4.150.0090.01517.40
7.4.140.0090.00917.86
7.4.130.0100.00916.74
7.4.120.0100.00716.69
7.4.110.0110.01016.72
7.4.100.0080.00816.75
7.4.90.0100.00616.53
7.4.80.0080.00819.39
7.4.70.0160.00616.75
7.4.60.0130.00316.62
7.4.50.0060.00316.51
7.4.40.0030.01516.65
7.4.30.0150.00316.62
7.4.00.0070.00715.15
7.3.330.0070.00013.16
7.3.320.0000.00613.22
7.3.310.0000.00716.20
7.3.300.0000.00716.43
7.3.290.0070.00716.39
7.3.280.0110.00516.50
7.3.270.0140.00717.40
7.3.260.0100.00716.58
7.3.250.0140.00316.56
7.3.240.0130.00316.37
7.3.230.0080.00816.50
7.3.210.0120.00616.43
7.3.200.0100.01019.39
7.3.190.0100.00716.51
7.3.180.0070.00916.50
7.3.170.0060.01016.33
7.3.160.0000.01616.43
7.3.10.0070.00716.69
7.3.00.0070.00716.59
7.2.330.0060.01216.63
7.2.320.0140.00316.58
7.2.310.0140.00416.66
7.2.300.0100.00716.78
7.2.290.0120.00516.73
7.2.130.0060.00617.08
7.2.120.0000.01217.05
7.2.110.0090.00317.03
7.2.100.0040.00816.82
7.2.90.0120.00016.96
7.2.80.0060.00916.66
7.2.70.0000.01017.07
7.2.60.0030.01017.04
7.2.50.0050.00516.72
7.2.40.0120.00016.68
7.2.30.0070.00717.04
7.2.20.0030.00617.10
7.2.10.0000.00917.06
7.2.00.0050.01018.21
7.1.250.0060.00616.07
7.1.100.0030.00918.53
7.1.70.0000.01517.32
7.1.60.0110.01419.40
7.1.50.0160.00716.84
7.1.00.0000.08022.32
7.0.200.0240.00314.86
7.0.140.0070.06722.10
7.0.60.0100.07319.94
7.0.50.0030.04317.84
7.0.40.0130.07720.28
7.0.30.0200.04020.20
7.0.20.0270.05020.13
7.0.10.0070.08320.37
7.0.00.0100.06320.23
5.6.280.0030.07320.78
5.6.210.0000.08020.55
5.6.200.0070.04018.15
5.6.190.0000.09020.40
5.6.180.0200.04320.35
5.6.170.0270.06720.32
5.6.160.0070.08320.46
5.6.150.0100.03718.22
5.6.140.0030.08318.21
5.6.130.0100.07718.07
5.6.120.0070.08320.98
5.6.110.0200.07321.13
5.6.100.0130.07321.10
5.6.90.0000.07321.09
5.6.80.0030.03720.56
5.5.350.0100.07720.42
5.5.340.0130.07717.92
5.5.330.0100.08020.28
5.5.320.0270.07720.18
5.5.310.0130.05020.29
5.5.300.0070.05717.91
5.5.290.0070.06017.95
5.5.280.0100.08020.73
5.5.270.0200.07020.78
5.5.260.0070.08720.93
5.5.250.0100.08020.54
5.5.240.0130.04020.33
5.4.450.0270.07019.13
5.4.440.0200.04019.24
5.4.430.0200.03719.09
5.4.420.0230.03719.25
5.4.410.0300.03719.31
5.4.400.0230.07718.93
5.4.390.0200.06019.09
5.4.380.0300.07019.13
5.4.370.0300.05019.10
5.4.360.0400.04018.93
5.4.350.0230.03718.94
5.4.340.0330.06019.16
5.4.320.0270.04719.24
5.4.310.0200.03719.12
5.4.300.0230.04318.77
5.4.290.0130.05018.80
5.4.280.0200.03719.10
5.4.270.0230.05319.02
5.4.260.0200.05319.16
5.4.250.0230.05018.91
5.4.240.0170.04019.05
5.4.230.0230.07018.91
5.4.220.0230.03319.09
5.4.210.0230.07018.92
5.4.200.0270.08019.11
5.4.190.0200.04719.07
5.4.180.0270.03718.77
5.4.170.0270.07019.22
5.4.160.0270.07319.21
5.4.150.0200.05719.05
5.4.140.0270.03716.39
5.4.130.0230.06716.37
5.4.120.0200.04716.26
5.4.110.0230.04316.04
5.4.100.0230.04016.23
5.4.90.0230.06716.18
5.4.80.0270.06316.41
5.4.70.0200.05716.22
5.4.60.0230.06716.16
5.4.50.0200.05316.43
5.4.40.0130.06016.43
5.4.30.0170.04016.20
5.4.20.0100.05016.36
5.4.10.0130.07316.45
5.4.00.0230.04315.63
5.3.290.0170.04014.75
5.3.280.0200.07314.54
5.3.270.0200.07314.54
5.3.260.0230.05314.58
5.3.250.0230.05014.62
5.3.240.0200.05714.65
5.3.230.0230.08014.44
5.3.220.0200.03714.44
5.3.210.0270.03714.47
5.3.200.0270.03714.41
5.3.190.0270.07314.44
5.3.180.0300.06314.55
5.3.170.0300.04014.44
5.3.160.0300.06014.42
5.3.150.0300.05314.51
5.3.140.0300.04014.46
5.3.130.0230.03314.45
5.3.120.0230.04714.64
5.3.110.0200.04014.54
5.3.100.0270.04013.91
5.3.90.0170.04014.11
5.3.80.0300.06313.87
5.3.70.0170.04714.03
5.3.60.0300.06713.88
5.3.50.0130.05714.04
5.3.40.0270.03013.91
5.3.30.0170.04313.86
5.3.20.0300.06013.53
5.3.10.0100.05713.45
5.3.00.0200.06013.48
5.2.170.0130.06312.37
5.2.160.0130.04312.37
5.2.150.0170.03712.37
5.2.140.0200.04312.37
5.2.130.0170.03012.37
5.2.120.0170.02712.37
5.2.110.0070.04012.37
5.2.100.0070.03312.37
5.2.90.0170.02312.37
5.2.80.0070.03712.37
5.2.70.0070.03312.37
5.2.60.0230.03012.37
5.2.50.0130.03012.37
5.2.40.0170.03012.37
5.2.30.0170.02312.37
5.2.20.0100.02712.37
5.2.10.0100.05312.37
5.2.00.0270.05012.37
5.1.60.0130.03012.37
5.1.50.0170.03712.37
5.1.40.0130.04712.37
5.1.30.0200.05312.37
5.1.20.0200.03312.37
5.1.10.0100.03012.37
5.1.00.0130.05712.37
5.0.50.0130.03312.37
5.0.40.0030.05012.37
5.0.30.0100.06012.37
5.0.20.0070.03712.37
5.0.10.0100.04012.37
5.0.00.0070.05012.37
4.4.90.0070.03712.37
4.4.80.0100.03312.37
4.4.70.0130.02312.37
4.4.60.0070.04012.37
4.4.50.0070.02312.37
4.4.40.0070.04312.37
4.4.30.0100.03012.37
4.4.20.0100.03312.37
4.4.10.0070.02712.37
4.4.00.0100.03712.37
4.3.110.0030.02712.37
4.3.100.0070.03312.37
4.3.90.0130.02312.37
4.3.80.0070.05012.37
4.3.70.0130.02312.37
4.3.60.0100.03012.37
4.3.50.0070.03012.37
4.3.40.0100.03312.37
4.3.30.0000.02712.37
4.3.20.0030.02012.37
4.3.10.0130.01712.37
4.3.00.0030.03012.37

preferences:
43.57 ms | 401 KiB | 5 Q