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); echo $_content;

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.40.0040.01119.09
8.3.30.0080.00819.09
8.3.20.0080.00020.16
8.3.10.0040.00423.61
8.3.00.0080.00019.63
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0110.00426.16
8.2.120.0000.00821.07
8.2.110.0060.00320.53
8.2.100.0060.00617.97
8.2.90.0040.00418.34
8.2.80.0050.00317.97
8.2.70.0070.00417.75
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0030.00520.13
8.2.30.0050.00518.12
8.2.20.0030.00618.10
8.2.10.0040.00418.21
8.2.00.0040.00418.06
8.1.270.0040.00424.09
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.25
8.1.230.0030.00920.97
8.1.220.0060.00317.77
8.1.210.0030.00519.04
8.1.200.0070.00717.35
8.1.190.0060.00317.25
8.1.180.0030.00618.10
8.1.170.0090.00018.66
8.1.160.0040.00421.91
8.1.150.0060.00318.79
8.1.140.0050.00217.54
8.1.130.0000.00718.00
8.1.120.0050.00217.64
8.1.110.0000.00817.58
8.1.100.0050.00317.60
8.1.90.0000.00717.45
8.1.80.0040.00417.60
8.1.70.0070.00017.50
8.1.60.0000.00817.71
8.1.50.0000.00817.70
8.1.40.0000.00717.58
8.1.30.0040.00417.77
8.1.20.0050.00317.63
8.1.10.0050.00317.59
8.1.00.0040.00417.52
8.0.300.0000.00720.21
8.0.290.0040.00416.88
8.0.280.0070.00018.56
8.0.270.0030.00317.36
8.0.260.0000.00717.31
8.0.250.0000.00717.16
8.0.240.0040.00417.20
8.0.230.0030.00317.16
8.0.220.0030.00317.06
8.0.210.0070.00317.16
8.0.200.0030.00317.14
8.0.190.0060.00317.03
8.0.180.0040.00417.12
8.0.170.0070.00017.05
8.0.160.0040.00416.93
8.0.150.0000.00817.02
8.0.140.0050.00217.05
8.0.130.0030.00313.53
8.0.120.0040.00417.12
8.0.110.0030.00517.04
8.0.100.0030.00517.02
8.0.90.0050.00316.92
8.0.80.0120.00317.10
8.0.70.0020.00516.96
8.0.60.0000.00717.03
8.0.50.0040.00416.92
8.0.30.0110.00917.34
8.0.20.0110.00817.40
8.0.10.0000.00717.19
8.0.00.0070.01016.93
7.4.330.0020.00215.04
7.4.320.0030.00316.75
7.4.300.0060.00016.63
7.4.290.0030.00316.74
7.4.280.0040.00416.74
7.4.270.0040.00416.82
7.4.260.0030.00516.84
7.4.250.0060.00316.85
7.4.240.0050.00316.84
7.4.230.0000.00716.86
7.4.220.0110.00716.92
7.4.210.0070.00716.74
7.4.200.0050.00216.58
7.4.160.0060.00916.70
7.4.150.0040.01417.40
7.4.140.0070.01017.86
7.4.130.0080.00916.68
7.4.120.0060.01216.79
7.4.110.0090.00916.73
7.4.100.0140.00316.73
7.4.90.0070.01016.55
7.4.80.0070.01019.39
7.4.70.0100.01316.79
7.4.60.0110.01216.73
7.4.50.0000.00916.67
7.4.40.0070.01016.71
7.4.30.0100.01016.59
7.4.00.0080.00914.89
7.3.330.0030.00313.32
7.3.320.0060.00013.25
7.3.310.0040.00416.35
7.3.300.0000.00716.48
7.3.290.0000.01316.45
7.3.280.0080.00816.45
7.3.270.0150.00917.40
7.3.260.0070.01016.48
7.3.250.0060.01216.56
7.3.240.0070.01016.70
7.3.230.0100.00716.66
7.3.210.0110.00716.48
7.3.200.0160.00619.39
7.3.190.0090.00616.44
7.3.180.0000.01516.55
7.3.170.0080.00816.47
7.3.160.0060.00916.66
7.3.00.0030.00916.91
7.2.330.0060.01216.68
7.2.320.0090.00916.79
7.2.310.0060.01116.54
7.2.300.0030.01316.78
7.2.290.0100.00716.66
7.2.130.0030.01317.09
7.2.120.0110.00416.80
7.2.110.0040.01217.05
7.2.100.0060.00616.89
7.2.90.0030.01216.78
7.2.80.0040.00717.21
7.2.70.0090.00317.05
7.2.60.0040.00717.19
7.2.50.0060.00616.95
7.2.40.0030.00916.87
7.2.30.0160.00416.75
7.2.20.0070.00417.10
7.2.10.0120.00317.20
7.2.00.0080.00618.30
7.1.250.0120.00415.89
7.1.240.0070.00716.14
7.1.230.0070.01115.77
7.1.220.0100.00016.12
7.1.210.0040.00415.98
7.1.200.0060.00315.70
7.1.190.0100.00715.88
7.1.180.0060.00715.83
7.1.170.0000.01015.82
7.1.160.0080.00315.98
7.1.150.0030.00816.00
7.1.140.0070.00315.95
7.1.130.0080.00315.86
7.1.120.0000.01416.02
7.1.110.0000.01216.05
7.1.100.0050.00817.01
7.1.90.0000.01216.03
7.1.80.0060.00615.89
7.1.70.0070.00516.76
7.1.60.0080.00316.58
7.1.50.0070.01116.55
7.1.40.0050.00515.88
7.1.30.0150.00315.81
7.1.20.0030.00716.11
7.1.10.0050.00815.74
7.1.00.0030.04319.11
7.0.330.0030.00715.45
7.0.320.0000.01115.68
7.0.310.0040.00715.53
7.0.300.0090.00315.52
7.0.290.0060.00415.58
7.0.280.0030.00715.46
7.0.270.0110.00315.45
7.0.260.0060.00615.43
7.0.250.0060.00315.67
7.0.240.0040.00715.68
7.0.230.0000.01115.20
7.0.220.0120.00315.61
7.0.210.0070.01015.32
7.0.200.0050.00716.19
7.0.190.0100.00315.66
7.0.180.0040.00915.60
7.0.170.0030.01115.66
7.0.160.0000.00815.48
7.0.150.0060.00615.21
7.0.140.0050.04118.85
7.0.130.0030.00815.58
7.0.120.0120.00615.59
7.0.110.0070.00315.43
7.0.100.0070.00715.75
7.0.90.0040.00715.41
7.0.80.0100.00315.55
7.0.70.0060.00915.66
7.0.60.0030.03317.66
7.0.50.0120.04016.58
7.0.40.0070.02916.89
7.0.30.0210.03416.97
7.0.20.0080.02616.85
7.0.10.0100.03816.91
7.0.00.0020.03516.82
5.6.380.0080.00314.50
5.6.370.0000.01414.24
5.6.360.0030.00714.16
5.6.350.0070.00414.12
5.6.340.0090.00314.48
5.6.330.0030.01214.58
5.6.320.0110.00713.86
5.6.310.0070.00414.43
5.6.300.0030.00914.02
5.6.290.0040.00714.06
5.6.280.0050.04017.63
5.6.270.0060.00614.29
5.6.260.0030.00914.67
5.6.250.0080.00314.54
5.6.240.0000.01114.48
5.6.230.0040.00714.10
5.6.220.0120.00014.07
5.6.210.0020.04917.47
5.6.200.0080.03916.20
5.6.190.0050.02717.35
5.6.180.0150.03317.41
5.6.170.0150.03017.32
5.6.160.0050.02417.52
5.6.150.0050.02916.22
5.6.140.0040.02416.20
5.6.130.0120.03816.18
5.6.120.0030.02717.78
5.6.110.0100.04217.46
5.6.100.0050.03517.59
5.6.90.0080.03917.58
5.6.80.0090.03417.16
5.6.70.0100.00314.12
5.6.60.0060.00314.37
5.6.50.0000.01014.07
5.6.40.0040.00814.04
5.6.30.0130.00314.15
5.6.20.0040.00814.48
5.6.10.0070.00714.03
5.6.00.0060.00914.25
5.5.380.0030.00511.60
5.5.370.0040.00411.60
5.5.360.0060.00611.60
5.5.350.0000.03216.04
5.5.340.0020.04514.79
5.5.330.0050.04515.98
5.5.320.0170.02015.87
5.5.310.0160.04016.05
5.5.300.0030.03914.80
5.5.290.0050.02514.77
5.5.280.0080.01816.24
5.5.270.0110.02716.27
5.5.260.0080.04516.23
5.5.250.0030.04316.10
5.5.240.1480.01715.91
5.5.230.0000.00811.60
5.5.220.0040.00711.60
5.5.210.0050.00511.60
5.5.200.0000.01011.60
5.5.190.0080.00011.60
5.5.180.0040.00711.60
5.5.170.0000.00911.60
5.5.160.0050.00311.60
5.5.150.0000.01111.60
5.5.140.0050.00511.60
5.5.130.0030.00811.60
5.5.120.0030.00711.60
5.5.110.0000.01011.60
5.5.100.0000.01211.60
5.5.90.0020.00411.60
5.5.80.0090.00311.60
5.5.70.0050.00511.60
5.5.60.0040.00711.60
5.5.50.0000.01111.60
5.5.40.0070.00311.60
5.5.30.0000.01111.60
5.5.20.0110.00011.60
5.5.10.0000.01211.60
5.5.00.0000.01011.60
5.4.450.0170.02015.53
5.4.440.0340.02415.58
5.4.430.0150.03115.50
5.4.420.0160.02515.51
5.4.410.0620.01815.44
5.4.400.0170.02615.38
5.4.390.0150.02315.41
5.4.380.0080.03315.14
5.4.370.0070.02915.10
5.4.360.0050.03215.13
5.4.350.0130.02715.13
5.4.340.0100.02915.14
5.4.330.0000.00711.60
5.4.320.0020.02512.03
5.4.310.0040.02712.03
5.4.300.0040.02112.03
5.4.290.0050.02312.02
5.4.280.0040.02111.97
5.4.270.0020.02811.97
5.4.260.0040.02511.97
5.4.250.0040.02311.97
5.4.240.0040.02311.97
5.4.230.0050.02011.97
5.4.220.0050.02011.97
5.4.210.0040.02311.97
5.4.200.0040.02311.97
5.4.190.0050.02311.97
5.4.180.0020.02511.97
5.4.170.0050.02111.97
5.4.160.0020.02111.97
5.4.150.0050.02111.97
5.4.140.0050.02311.81
5.4.130.0050.02011.80
5.4.120.0060.01911.79
5.4.110.0070.01911.78
5.4.100.0050.02311.78
5.4.90.0080.01911.78
5.4.80.0100.01811.78
5.4.70.0070.01811.78
5.4.60.0030.02111.78
5.4.50.0020.02211.78
5.4.40.0060.02011.77
5.4.30.0040.02611.77
5.4.20.0030.02411.78
5.4.10.0050.02111.78
5.4.00.0040.02211.52
5.3.290.0060.02212.20
5.3.280.0050.02212.15
5.3.270.0020.02312.16
5.3.260.0040.02212.16
5.3.250.0020.02212.16
5.3.240.0040.02112.16
5.3.230.0020.02212.15
5.3.220.0070.02412.14
5.3.210.0090.02612.14
5.3.200.0020.02212.14
5.3.190.0060.02112.14
5.3.180.0050.02112.14
5.3.170.0080.02412.13
5.3.160.0070.01812.14
5.3.150.0060.02012.14
5.3.140.0070.01912.13
5.3.130.0050.02312.13
5.3.120.0070.02012.13
5.3.110.0050.02412.13
5.3.100.0070.02011.86
5.3.90.0020.02511.84
5.3.80.0050.02411.84
5.3.70.0050.02211.84
5.3.60.0040.02411.83
5.3.50.0040.02711.80
5.3.40.0070.02111.80
5.3.30.0090.01811.78
5.3.20.0040.02211.67
5.3.10.0060.02211.65
5.3.00.0050.02211.65
5.2.170.0050.02010.40
5.2.160.0040.02110.40
5.2.150.0050.01510.40
5.2.140.0040.01910.39
5.2.130.0040.01710.38
5.2.120.0020.01810.38
5.2.110.0030.01610.38
5.2.100.0040.02410.38
5.2.90.0030.02110.38
5.2.80.0070.01810.38
5.2.70.0040.01910.38
5.2.60.0090.01310.35
5.2.50.0070.01410.34
5.2.40.0060.01810.33
5.2.30.0060.01610.32
5.2.20.0050.02010.31
5.2.10.0060.01910.27
5.2.00.0030.01810.20
5.1.60.0060.0129.84
5.1.50.0050.0159.84
5.1.40.0040.0189.83
5.1.30.0040.01910.01
5.1.20.0050.01410.02
5.1.10.0040.0169.88
5.1.00.0030.0239.88
5.0.50.0040.0139.12
5.0.40.0030.0119.05
5.0.30.0030.0178.95
5.0.20.0020.0148.94
5.0.10.0020.0118.93
5.0.00.0040.0158.92
4.4.90.0040.0118.19
4.4.80.0050.0148.18
4.4.70.0030.0118.18
4.4.60.0040.0098.18
4.4.50.0020.0118.19
4.4.40.0030.0138.16
4.4.30.0020.0108.18
4.4.20.0050.0078.22
4.4.10.0040.0088.22
4.4.00.0030.0128.18
4.3.110.0020.0108.13
4.3.100.0030.0098.13
4.3.90.0030.0088.12
4.3.80.0020.0148.09
4.3.70.0010.0108.12
4.3.60.0020.0098.12
4.3.50.0020.0118.11
4.3.40.0060.0108.07
4.3.30.0010.0117.45
4.3.20.0010.0107.44
4.3.10.0020.0107.42
4.3.00.0030.01012.51

preferences:
48.28 ms | 400 KiB | 5 Q