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>blablabla<img src="someimage.gif"></iframe></div></div><div>this div is ok</div>'; $_content = preg_replace('#(?:<(?:div|span)[^>]*>[\s]*)*(<iframe[\s]*(?:[^>]+)>(?:.*?)*<\/iframe[^>]*>)(?:[\s]*<(?:embed|script)[^>]*>[^<]*<\/(?:embed|script)[^>]*>[\s]*)*(?:<\/(?:div|span)[^>]*>)*#iu', '$1', $_content); echo $_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.0180.00318.43
8.3.50.0060.01422.97
8.3.40.0110.00419.01
8.3.30.0140.00018.90
8.3.20.0030.00520.33
8.3.10.0040.00423.61
8.3.00.0040.00417.75
8.2.180.0100.01316.63
8.2.170.0100.00722.96
8.2.160.0080.00620.39
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.95
8.2.110.0030.00721.30
8.2.100.0080.00418.13
8.2.90.0000.00818.34
8.2.80.0040.00417.97
8.2.70.0040.00717.88
8.2.60.0000.00917.80
8.2.50.0060.00318.07
8.2.40.0000.00920.20
8.2.30.0040.00818.08
8.2.20.0040.00418.05
8.2.10.0000.00818.31
8.2.00.0040.00418.06
8.1.280.0180.00425.92
8.1.270.0040.00423.95
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0070.00421.17
8.1.230.0070.00417.82
8.1.220.0090.00017.74
8.1.210.0080.00018.91
8.1.200.0070.00317.47
8.1.190.0080.00017.48
8.1.180.0050.00318.10
8.1.170.0000.00818.70
8.1.160.0030.00621.98
8.1.150.0040.00418.98
8.1.140.0040.00417.68
8.1.130.0030.00317.90
8.1.120.0040.00417.59
8.1.110.0040.00417.60
8.1.100.0040.00417.52
8.1.90.0000.00717.54
8.1.80.0050.00317.49
8.1.70.0000.00717.55
8.1.60.0040.00417.73
8.1.50.0000.00817.47
8.1.40.0000.00817.67
8.1.30.0000.00917.61
8.1.20.0000.00817.81
8.1.10.0050.00317.70
8.1.00.0000.00817.66
8.0.300.0000.00720.15
8.0.290.0040.00417.00
8.0.280.0030.00318.38
8.0.270.0070.00017.30
8.0.260.0000.00717.24
8.0.250.0000.00717.19
8.0.240.0000.00817.18
8.0.230.0040.00417.05
8.0.220.0060.00017.19
8.0.210.0070.00317.18
8.0.200.0000.00717.10
8.0.190.0000.00917.09
8.0.180.0040.00416.98
8.0.170.0000.00717.06
8.0.160.0000.00717.09
8.0.150.0050.00216.95
8.0.140.0000.00716.91
8.0.130.0030.00313.45
8.0.120.0000.00817.07
8.0.110.0030.00517.04
8.0.100.0000.00716.97
8.0.90.0040.00417.01
8.0.80.0080.00817.03
8.0.70.0000.00816.99
8.0.60.0050.00317.22
8.0.50.0050.00217.01
8.0.30.0080.01117.26
8.0.20.0080.01317.40
8.0.10.0050.00217.22
8.0.00.0050.01416.92
7.4.330.0030.00315.14
7.4.320.0040.00416.73
7.4.300.0060.00016.78
7.4.290.0030.00316.66
7.4.280.0040.00416.63
7.4.270.0030.00316.79
7.4.260.0060.00316.71
7.4.250.0000.00716.80
7.4.240.0050.00216.79
7.4.230.0030.00316.81
7.4.220.0140.00616.93
7.4.210.0110.00316.74
7.4.200.0050.00216.71
7.4.160.0070.01016.44
7.4.150.0030.01717.40
7.4.140.0080.01317.86
7.4.130.0080.01016.61
7.4.120.0040.01216.61
7.4.110.0090.01216.61
7.4.100.0110.00716.92
7.4.90.0110.00616.79
7.4.80.0130.01519.39
7.4.70.0140.00516.70
7.4.60.0030.01516.93
7.4.50.0000.00416.71
7.4.40.0090.01216.82
7.4.30.0110.00616.57
7.4.00.0000.01815.08
7.3.330.0000.00513.18
7.3.320.0000.00613.34
7.3.310.0000.00716.50
7.3.300.0050.00216.44
7.3.290.0030.01616.44
7.3.280.0100.00816.48
7.3.270.0160.01017.40
7.3.260.0110.01116.75
7.3.250.0150.00316.60
7.3.240.0140.00316.32
7.3.230.0080.00816.39
7.3.210.0100.00716.61
7.3.200.0070.01219.39
7.3.190.0070.01616.73
7.3.180.0130.00316.57
7.3.170.0080.00816.66
7.3.160.0160.00616.66
7.2.330.0110.00716.62
7.2.320.0100.00716.72
7.2.310.0140.00916.80
7.2.300.0090.01316.62
7.2.290.0110.00516.89
7.2.00.0000.01219.48
7.1.200.0090.00015.98
7.1.100.0080.00318.20
7.1.70.0030.00717.36
7.1.60.0110.01419.40
7.1.50.0060.01917.21
7.1.00.0070.07322.44
7.0.200.0980.00714.87
7.0.140.0030.07321.95
7.0.60.0130.07320.06
7.0.50.0070.08317.83
7.0.40.0030.04320.25
7.0.30.0230.06320.23
7.0.20.0230.06020.34
7.0.10.0070.09020.37
7.0.00.0070.03720.20
5.6.280.0000.07720.90
5.6.210.0030.04020.56
5.6.200.0130.06718.26
5.6.190.0070.04720.72
5.6.180.0300.07720.50
5.6.170.0300.07320.43
5.6.160.0000.04720.59
5.6.150.0030.04018.20
5.6.140.0070.07318.15
5.6.130.0130.08018.19
5.6.120.0100.05321.01
5.6.110.0000.09320.99
5.6.100.0070.05321.03
5.6.90.0070.04721.02
5.6.80.0070.07720.42
5.5.350.0030.08320.48
5.5.340.0200.07018.06
5.5.330.0100.07020.45
5.5.320.0300.05320.32
5.5.310.0030.05320.18
5.5.300.0100.03317.96
5.5.290.0130.03317.96
5.5.280.0070.07320.81
5.5.270.0130.08020.89
5.5.260.0100.06320.88
5.5.250.0070.09020.71
5.5.240.4070.04020.29
5.4.450.0670.03719.48
5.4.440.0330.04719.46
5.4.430.0130.02319.44
5.4.420.0730.04019.29
5.4.410.0270.04319.13
5.4.400.0370.04319.14
5.4.390.0800.03318.86
5.4.380.0170.06018.60
5.4.370.0230.05318.72
5.4.360.0270.04318.66
5.4.350.0300.04718.66
5.4.340.0230.04718.50
5.4.320.0090.04112.50
5.4.310.0050.03812.49
5.4.300.0080.04412.50
5.4.290.0080.04612.49
5.4.280.0080.03212.38
5.4.270.0040.03812.38
5.4.260.0090.03412.39
5.4.250.0060.03812.39
5.4.240.0010.04012.39
5.4.230.0050.03712.38
5.4.220.0050.03612.38
5.4.210.0090.03812.38
5.4.200.0060.03712.38
5.4.190.0040.03712.38
5.4.180.0080.03412.38
5.4.170.0070.03512.39
5.4.160.0050.03512.38
5.4.150.0060.03612.38
5.4.140.0040.03812.07
5.4.130.0050.03512.05
5.4.120.0060.04412.04
5.4.110.0070.03612.04
5.4.100.0040.04112.04
5.4.90.0070.04212.04
5.4.80.0030.03912.04
5.4.70.0070.04012.04
5.4.60.0070.03312.04
5.4.50.0070.03412.04
5.4.40.0060.04412.03
5.4.30.0070.03512.03
5.4.20.0090.03912.03
5.4.10.0060.03612.03
5.4.00.0060.03611.49
5.3.290.0050.04012.80
5.3.280.0100.05112.71
5.3.270.0050.03912.72
5.3.260.0100.04512.72
5.3.250.0040.03912.72
5.3.240.0040.03912.72
5.3.230.0060.03912.71
5.3.220.0060.03712.70
5.3.210.0090.04012.70
5.3.200.0080.03412.69
5.3.190.0090.04012.70
5.3.180.0030.03912.70
5.3.170.0050.03712.70
5.3.160.0110.04112.70
5.3.150.0080.04512.69
5.3.140.0060.03612.69
5.3.130.0080.04012.68
5.3.120.0030.04112.68
5.3.110.0040.04112.68
5.3.100.0070.03612.17
5.3.90.0040.04212.13
5.3.80.0080.03712.12
5.3.70.0070.03512.11
5.3.60.0090.03412.10
5.3.50.0070.03512.05
5.3.40.0080.03812.05
5.3.30.0040.03712.00
5.3.20.0050.03611.79
5.3.10.0100.03911.75
5.3.00.0060.03611.74
5.2.170.0090.0339.24
5.2.160.0050.0279.24
5.2.150.0080.0459.25
5.2.140.0040.0319.24
5.2.130.0030.0369.20
5.2.120.0100.0319.20
5.2.110.0050.0299.21
5.2.100.0040.0289.20
5.2.90.0040.0319.20
5.2.80.0100.0249.19
5.2.70.0040.0319.19
5.2.60.0020.0329.15
5.2.50.0050.0429.12
5.2.40.0030.0359.10
5.2.30.0070.0359.07
5.2.20.0030.0309.06
5.2.10.0070.0358.96
5.2.00.0050.0278.83
5.1.60.0020.0258.13
5.1.50.0040.0258.13
5.1.40.0020.0268.11
5.1.30.0050.0258.46
5.1.20.0040.0268.48
5.1.10.0060.0308.20
5.1.00.0050.0288.14
5.0.50.0030.0286.69
5.0.40.0020.0226.54
5.0.30.0050.0296.35
5.0.20.0050.0186.32
5.0.10.0040.0186.30
5.0.00.0030.0426.29
4.4.90.0030.0254.78
4.4.80.0040.0144.75
4.4.70.0050.0194.75
4.4.60.0030.0154.75
4.4.50.0060.0144.77
4.4.40.0040.0254.71
4.4.30.0050.0184.76
4.4.20.0020.0184.84
4.4.10.0020.0164.85
4.4.00.0070.0224.76
4.3.110.0020.0164.67
4.3.100.0050.0174.66
4.3.90.0040.0214.63
4.3.80.0030.0294.59
4.3.70.0010.0214.63
4.3.60.0010.0154.63
4.3.50.0050.0134.63
4.3.40.0080.0344.54
4.3.30.0040.0183.34
4.3.20.0020.0353.32
4.3.10.0020.0183.28
4.3.00.0170.02013.43

preferences:
71.64 ms | 401 KiB | 5 Q