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.0100.01018.68
8.3.50.0130.00823.13
8.3.40.0070.00719.04
8.3.30.0040.01119.05
8.3.20.0080.00020.21
8.3.10.0070.01023.29
8.3.00.0080.00017.84
8.2.180.0060.01016.75
8.2.170.0040.01122.96
8.2.160.0140.00720.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0100.00326.16
8.2.120.0040.00421.21
8.2.110.0030.00622.38
8.2.100.0030.00918.03
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.01217.93
8.2.50.0030.00518.07
8.2.40.0060.00320.01
8.2.30.0060.00318.15
8.2.20.0070.00017.95
8.2.10.0000.00718.42
8.2.00.0000.00718.05
8.1.280.0100.00325.92
8.1.270.0040.00424.09
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.84
8.1.230.0090.00319.12
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0080.00018.68
8.1.160.0000.00721.95
8.1.150.0040.00418.85
8.1.140.0050.00317.58
8.1.130.0030.00317.93
8.1.120.0070.00017.57
8.1.110.0080.00017.58
8.1.100.0000.00817.56
8.1.90.0000.00817.59
8.1.80.0050.00317.57
8.1.70.0040.00417.45
8.1.60.0040.00417.72
8.1.50.0040.00417.63
8.1.40.0030.00517.61
8.1.30.0030.00517.78
8.1.20.0000.00917.83
8.1.10.0050.00217.61
8.1.00.0020.00517.60
8.0.300.0050.00318.77
8.0.290.0050.00217.00
8.0.280.0030.00318.47
8.0.270.0000.00717.18
8.0.260.0030.00317.30
8.0.250.0000.00717.20
8.0.240.0030.00617.17
8.0.230.0030.00317.16
8.0.220.0030.00317.14
8.0.210.0050.00517.09
8.0.200.0060.00017.03
8.0.190.0080.00017.05
8.0.180.0000.00817.06
8.0.170.0000.00816.98
8.0.160.0040.00417.05
8.0.150.0050.00216.90
8.0.140.0000.00816.90
8.0.130.0060.00013.57
8.0.120.0050.00317.11
8.0.110.0080.00016.97
8.0.100.0040.00417.13
8.0.90.0050.00317.00
8.0.80.0060.00917.16
8.0.70.0000.00717.02
8.0.60.0030.00617.24
8.0.50.0040.00417.03
8.0.30.0130.00917.34
8.0.20.0110.00917.40
8.0.10.0000.00717.11
8.0.00.0060.01117.10
7.4.330.0020.00215.08
7.4.320.0030.00316.64
7.4.300.0030.00316.74
7.4.290.0070.00016.72
7.4.280.0040.00416.71
7.4.270.0030.00316.84
7.4.260.0000.00716.70
7.4.250.0040.00416.65
7.4.240.0030.00416.70
7.4.230.0030.00316.82
7.4.220.0030.01616.68
7.4.210.0070.00716.81
7.4.200.0000.00816.93
7.4.160.0110.00616.99
7.4.150.0100.01317.40
7.4.140.0160.00517.86
7.4.130.0120.00716.85
7.4.120.0060.01116.77
7.4.110.0090.00916.70
7.4.100.0040.01216.61
7.4.90.0090.00916.93
7.4.80.0100.01019.39
7.4.70.0090.00916.62
7.4.60.0060.01116.71
7.4.50.0000.00816.68
7.4.40.0130.01016.60
7.4.30.0100.00716.61
7.4.00.0030.01315.09
7.3.330.0050.00013.28
7.3.320.0000.00613.23
7.3.310.0030.00516.57
7.3.300.0030.00316.44
7.3.290.0060.01316.42
7.3.280.0070.00816.42
7.3.270.0150.01017.40
7.3.260.0130.00416.67
7.3.250.0120.00516.51
7.3.240.0130.00416.54
7.3.230.0070.01016.39
7.3.210.0130.00516.75
7.3.200.0140.01019.39
7.3.190.0160.00016.54
7.3.180.0130.00316.38
7.3.170.0120.00416.57
7.3.160.0110.00716.55
7.2.330.0130.00416.68
7.2.320.0070.01016.79
7.2.310.0110.00816.68
7.2.300.0030.01916.85
7.2.290.0090.00916.75
7.2.00.0000.01219.79
7.1.70.0040.00417.26
7.1.60.0090.01519.40
7.1.50.0140.01017.21
7.1.00.0000.07722.39
7.0.200.0190.00614.68
7.0.140.0100.07021.98
7.0.60.0030.09019.94
7.0.50.0000.05017.84
7.0.40.0070.06320.25
7.0.30.0570.07020.34
7.0.20.0270.08020.34
7.0.10.0070.05320.22
7.0.00.0070.08320.09
5.6.280.0000.07321.11
5.6.210.0030.05020.60
5.6.200.0070.04018.18
5.6.190.0100.08020.59
5.6.180.0270.05020.64
5.6.170.0200.08720.53
5.6.160.0070.08020.47
5.6.150.0130.07718.23
5.6.140.0170.06318.15
5.6.130.0030.08718.09
5.6.120.0070.08320.87
5.6.110.0100.09021.00
5.6.100.0300.06721.11
5.6.90.0130.07720.87
5.6.80.0070.08720.38
5.5.350.0300.07320.39
5.5.340.0030.04018.00
5.5.330.0100.04020.20
5.5.320.0470.06720.19
5.5.310.0330.06720.29
5.5.300.0070.03717.98
5.5.290.0070.05317.97
5.5.280.0030.08320.64
5.5.270.0130.07020.64
5.5.260.0100.08320.96
5.5.250.0030.04720.56
5.5.240.4000.03720.18
5.4.450.0230.04319.15
5.4.440.0230.04019.49
5.4.430.0670.04319.46
5.4.420.0270.04019.57
5.4.410.0370.04319.45
5.4.400.0100.03019.11
5.4.390.0670.04019.21
5.4.380.0170.07318.72
5.4.370.0600.07018.51
5.4.360.0370.04718.45
5.4.350.0100.06018.58
5.4.340.0400.05018.60
5.4.320.0050.03712.46
5.4.310.0060.03812.46
5.4.300.0040.04912.46
5.4.290.0060.04712.45
5.4.280.0080.04812.35
5.4.270.0060.05112.36
5.4.260.0050.03812.35
5.4.250.0080.03412.35
5.4.240.0080.03912.36
5.4.230.0070.03712.34
5.4.220.0080.03412.34
5.4.210.0060.03512.34
5.4.200.0070.04012.34
5.4.190.0070.03612.34
5.4.180.0070.03612.34
5.4.170.0050.03612.36
5.4.160.0070.04912.34
5.4.150.0060.04212.34
5.4.140.0110.04012.03
5.4.130.0050.03612.02
5.4.120.0040.03711.99
5.4.110.0080.03311.98
5.4.100.0100.03211.98
5.4.90.0050.03711.98
5.4.80.0020.04111.98
5.4.70.0070.03311.98
5.4.60.0080.03211.98
5.4.50.0080.04211.98
5.4.40.0070.03311.97
5.4.30.0060.04311.96
5.4.20.0030.04511.96
5.4.10.0050.03411.96
5.4.00.0050.04211.45
5.3.290.0080.04312.80
5.3.280.0110.04212.70
5.3.270.0060.04412.72
5.3.260.0050.06612.72
5.3.250.0080.04312.72
5.3.240.0070.04712.72
5.3.230.0060.03812.71
5.3.220.0040.03812.68
5.3.210.0070.03812.68
5.3.200.0050.03712.68
5.3.190.0070.03912.68
5.3.180.0060.04112.68
5.3.170.0020.04012.67
5.3.160.0020.04012.67
5.3.150.0060.03612.68
5.3.140.0040.04612.66
5.3.130.0070.03712.66
5.3.120.0090.03512.66
5.3.110.0060.05112.66
5.3.100.0030.03912.12
5.3.90.0040.03712.08
5.3.80.0060.03512.08
5.3.70.0080.03412.07
5.3.60.0080.03512.06
5.3.50.0070.03612.00
5.3.40.0040.03912.01
5.3.30.0040.03711.96
5.3.20.0090.03911.75
5.3.10.0060.03411.71
5.3.00.0090.03411.70
5.2.170.0060.0299.20
5.2.160.0050.0289.20
5.2.150.0050.0309.20
5.2.140.0050.0309.20
5.2.130.0040.0289.16
5.2.120.0050.0279.16
5.2.110.0080.0269.16
5.2.100.0040.0359.16
5.2.90.0040.0359.16
5.2.80.0050.0329.16
5.2.70.0070.0299.16
5.2.60.0030.0329.11
5.2.50.0040.0309.08
5.2.40.0030.0309.06
5.2.30.0040.0319.04
5.2.20.0060.0329.03
5.2.10.0070.0408.94
5.2.00.0030.0348.80
5.1.60.0060.0298.09
5.1.50.0050.0238.09
5.1.40.0060.0288.07
5.1.30.0020.0278.42
5.1.20.0070.0338.45
5.1.10.0080.0278.16
5.1.00.0050.0238.14
5.0.50.0060.0256.65
5.0.40.0030.0206.50
5.0.30.0050.0296.31
5.0.20.0030.0196.29
5.0.10.0020.0216.26
5.0.00.0050.0306.25
4.4.90.0020.0164.78
4.4.80.0030.0264.76
4.4.70.0040.0214.76
4.4.60.0030.0264.76
4.4.50.0030.0234.77
4.4.40.0010.0264.71
4.4.30.0060.0204.76
4.4.20.0010.0164.84
4.4.10.0050.0134.84
4.4.00.0030.0244.76
4.3.110.0030.0144.67
4.3.100.0030.0144.66
4.3.90.0040.0144.63
4.3.80.0040.0384.58
4.3.70.0010.0154.63
4.3.60.0030.0244.63
4.3.50.0030.0154.62
4.3.40.0020.0244.53
4.3.30.0010.0163.30
4.3.20.0010.0183.28
4.3.10.0040.0163.24
4.3.00.0030.02013.43

preferences:
47.05 ms | 401 KiB | 5 Q