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</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.0090.01316.88
8.3.50.0130.00722.96
8.3.40.0070.00719.10
8.3.30.0120.00319.14
8.3.20.0050.00220.22
8.3.10.0050.00223.51
8.3.00.0040.00417.84
8.2.180.0190.00416.63
8.2.170.0110.00422.96
8.2.160.0130.00720.30
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00726.16
8.2.120.0050.00321.08
8.2.110.0030.00622.43
8.2.100.0120.00020.01
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0000.00917.86
8.2.60.0030.00817.80
8.2.50.0080.00018.07
8.2.40.0030.00618.22
8.2.30.0060.00318.23
8.2.20.0000.00818.00
8.2.10.0040.00418.36
8.2.00.0040.00417.93
8.1.280.0080.00625.92
8.1.270.0030.00523.96
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.88
8.1.230.0040.00819.17
8.1.220.0030.00517.89
8.1.210.0040.00418.77
8.1.200.0000.01217.35
8.1.190.0080.00017.48
8.1.180.0000.00818.10
8.1.170.0040.00418.73
8.1.160.0030.00521.91
8.1.150.0040.00418.86
8.1.140.0040.00417.59
8.1.130.0000.00717.82
8.1.120.0040.00417.58
8.1.110.0000.00817.59
8.1.100.0000.00717.48
8.1.90.0040.00417.55
8.1.80.0030.00617.48
8.1.70.0000.00717.42
8.1.60.0080.00017.57
8.1.50.0000.00817.57
8.1.40.0040.00417.61
8.1.30.0040.00417.59
8.1.20.0040.00417.79
8.1.10.0040.00417.74
8.1.00.0030.00517.63
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0000.00818.50
8.0.270.0040.00417.28
8.0.260.0060.00017.30
8.0.250.0070.00017.14
8.0.240.0030.00617.10
8.0.230.0040.00417.03
8.0.220.0000.00717.14
8.0.210.0030.00617.08
8.0.200.0000.00617.03
8.0.190.0000.00917.10
8.0.180.0040.00417.09
8.0.170.0030.00516.98
8.0.160.0070.00016.99
8.0.150.0070.00017.06
8.0.140.0000.00817.04
8.0.130.0000.00613.42
8.0.120.0030.00616.98
8.0.110.0050.00317.10
8.0.100.0000.00717.13
8.0.90.0070.00017.17
8.0.80.0120.00317.07
8.0.70.0040.00417.23
8.0.60.0070.00017.03
8.0.50.0000.00816.95
8.0.30.0100.01017.38
8.0.20.0070.01117.40
8.0.10.0050.00317.11
8.0.00.0100.00717.03
7.4.330.0050.00015.13
7.4.320.0040.00416.73
7.4.300.0000.00616.74
7.4.290.0040.00416.86
7.4.280.0000.00816.65
7.4.270.0040.00416.74
7.4.260.0000.00816.66
7.4.250.0000.00816.83
7.4.240.0030.00316.72
7.4.230.0000.00716.77
7.4.220.0130.00916.86
7.4.210.0030.01216.88
7.4.200.0030.00316.62
7.4.160.0070.01016.73
7.4.150.0100.01017.40
7.4.140.0130.00817.86
7.4.130.0110.00616.64
7.4.120.0080.00816.75
7.4.110.0110.01116.57
7.4.100.0080.00816.63
7.4.90.0100.00716.73
7.4.80.0050.01419.39
7.4.70.0130.01316.78
7.4.60.0100.00716.62
7.4.50.0030.00616.73
7.4.40.0090.00916.72
7.4.30.0070.01116.62
7.4.00.0070.00714.95
7.3.330.0030.00313.26
7.3.320.0000.00513.25
7.3.310.0030.00316.28
7.3.300.0000.00616.40
7.3.290.0060.00916.41
7.3.280.0090.00716.43
7.3.270.0120.01317.40
7.3.260.0130.00316.48
7.3.250.0100.00616.40
7.3.240.0030.01416.38
7.3.230.0130.00316.40
7.3.210.0120.00616.78
7.3.200.0080.01419.39
7.3.190.0040.01116.53
7.3.180.0100.00616.61
7.3.170.0080.00816.77
7.3.160.0070.01016.71
7.3.00.0110.00316.78
7.2.330.0100.00716.62
7.2.320.0070.01016.65
7.2.310.0110.00716.62
7.2.300.0190.00016.63
7.2.290.0100.01316.87
7.2.130.0060.00916.78
7.2.120.0030.01016.98
7.2.110.0000.01517.04
7.2.100.0070.01117.04
7.2.90.0060.00616.84
7.2.80.0040.01316.96
7.2.70.0070.00316.93
7.2.60.0120.00517.20
7.2.50.0090.00617.04
7.2.40.0070.01417.01
7.2.30.0100.00317.12
7.2.20.0030.01417.09
7.2.10.0170.00416.57
7.2.00.0070.01018.38
7.1.250.0030.01015.61
7.1.240.0060.00915.94
7.1.230.0120.00315.99
7.1.220.0060.00615.75
7.1.210.0080.00815.88
7.1.200.0090.00615.98
7.1.190.0100.01015.55
7.1.180.0050.01015.80
7.1.170.0110.00415.75
7.1.160.0140.00315.92
7.1.150.0090.00316.09
7.1.140.0110.00415.62
7.1.130.0110.00815.85
7.1.120.0070.00715.86
7.1.110.0060.01015.65
7.1.100.0050.00917.18
7.1.90.0090.00616.05
7.1.80.0070.01116.02
7.1.70.0040.00816.72
7.1.60.0100.00717.66
7.1.50.0080.01216.61
7.1.40.0160.00315.92
7.1.30.0150.00316.02
7.1.20.0140.00715.93
7.1.10.0100.00716.04
7.1.00.0060.04019.15
7.0.330.0060.00915.27
7.0.320.0080.00815.46
7.0.310.0040.00715.43
7.0.300.0060.00915.65
7.0.290.0070.00715.37
7.0.280.0090.00615.66
7.0.270.0060.00915.26
7.0.260.0120.00315.55
7.0.250.0110.00615.57
7.0.240.0060.00915.37
7.0.230.0040.01115.54
7.0.220.0030.01015.19
7.0.210.0090.00615.55
7.0.200.0160.00315.20
7.0.190.0090.00615.54
7.0.180.0160.00315.50
7.0.170.0110.00315.38
7.0.160.0090.01115.46
7.0.150.0070.00715.66
7.0.140.0070.03918.65
7.0.130.0080.00815.63
7.0.120.0090.00915.39
7.0.110.0110.00615.71
7.0.100.0140.00515.30
7.0.90.0060.00915.58
7.0.80.0100.00315.52
7.0.70.0170.00415.27
7.0.60.0070.03317.65
7.0.50.0090.02816.66
7.0.40.0020.04916.96
7.0.30.0180.04316.87
7.0.20.0190.03416.89
7.0.10.0100.02016.76
7.0.00.0060.04816.83
5.6.380.0070.00714.41
5.6.370.0090.00014.29
5.6.360.0090.00614.70
5.6.350.0080.00814.51
5.6.340.0080.00314.26
5.6.330.0080.01114.31
5.6.320.0030.00814.20
5.6.310.0100.00714.01
5.6.300.0040.01414.31
5.6.290.0060.00614.29
5.6.280.0100.03317.63
5.6.270.0120.00214.18
5.6.260.0080.00514.27
5.6.250.0000.01214.37
5.6.240.0070.01014.39
5.6.230.0080.00814.40
5.6.220.0080.00414.25
5.6.210.0140.03417.58
5.6.200.0040.04716.13
5.6.190.0070.04617.23
5.6.180.0220.03817.33
5.6.170.0030.03317.22
5.6.160.0060.04017.19
5.6.150.0070.03916.09
5.6.140.0060.02016.13
5.6.130.0100.04016.06
5.6.120.0030.03117.50
5.6.110.0140.03917.52
5.6.100.0050.04617.50
5.6.90.0100.03917.52
5.6.80.0070.02217.21
5.6.70.0000.01214.04
5.6.60.0060.00613.82
5.6.50.0030.01014.16
5.6.40.0060.00314.20
5.6.30.0100.00014.19
5.6.20.0030.00913.80
5.6.10.0070.00714.03
5.6.00.0000.01213.96
5.5.380.0060.00611.00
5.5.370.0110.00010.89
5.5.360.0030.00611.34
5.5.350.0050.04315.59
5.5.340.0070.04014.50
5.5.330.0060.03615.49
5.5.320.0150.02315.62
5.5.310.0120.04415.47
5.5.300.0060.04514.26
5.5.290.0050.04014.47
5.5.280.0070.02415.82
5.5.270.0050.04115.88
5.5.260.0060.02815.81
5.5.250.0070.04115.75
5.5.240.2100.02415.48
5.5.230.0050.00210.98
5.5.220.0000.00910.84
5.5.210.0060.00310.76
5.5.200.0000.00810.88
5.5.190.0080.00011.00
5.5.180.0030.00510.92
5.5.170.0030.00311.07
5.5.160.0080.00511.13
5.5.150.0080.00010.94
5.5.140.0030.00510.71
5.5.130.0000.01010.97
5.5.120.0000.00810.71
5.5.110.0000.00911.06
5.5.100.0070.00311.02
5.5.90.0040.00410.85
5.5.80.0070.00210.70
5.5.70.0000.01111.10
5.5.60.0090.00010.96
5.5.50.0030.00710.93
5.5.40.0000.00511.02
5.5.30.0000.00811.15
5.5.20.0040.00410.73
5.5.10.0050.00310.78
5.5.00.0000.01110.58
5.4.450.0110.02014.97
5.4.440.0090.02315.15
5.4.430.0360.02215.20
5.4.420.0120.02415.10
5.4.410.0330.02315.19
5.4.400.0130.02514.99
5.4.390.0220.02715.06
5.4.380.0180.02514.60
5.4.370.0110.02714.80
5.4.360.0220.02314.80
5.4.350.0130.03014.60
5.4.340.0180.02614.81
5.4.330.0080.00010.88
5.4.320.0070.01811.56
5.4.310.0040.02111.51
5.4.300.0060.01911.62
5.4.290.0040.02111.65
5.4.280.0040.02011.56
5.4.270.0020.02411.58
5.4.260.0050.01911.49
5.4.250.0060.02111.56
5.4.240.0070.02211.40
5.4.230.0020.02511.50
5.4.220.0070.02511.54
5.4.210.0020.02411.51
5.4.200.0070.01911.56
5.4.190.0040.02911.48
5.4.180.0070.01911.54
5.4.170.0060.02511.45
5.4.160.0080.01911.62
5.4.150.0050.02011.70
5.4.140.0050.02411.55
5.4.130.0100.02011.38
5.4.120.0050.02011.50
5.4.110.0040.02411.47
5.4.100.0080.01811.43
5.4.90.0050.02011.52
5.4.80.0060.02211.50
5.4.70.0080.01511.37
5.4.60.0050.02511.48
5.4.50.0060.01911.36
5.4.40.0060.01811.46
5.4.30.0020.02211.44
5.4.20.0020.02211.46
5.4.10.0060.01911.37
5.4.00.0040.02411.01
5.3.290.0060.02211.67
5.3.280.0050.02311.57
5.3.270.0040.02211.66
5.3.260.0030.02511.58
5.3.250.0070.02211.67
5.3.240.0020.02311.60
5.3.230.0050.02211.53
5.3.220.0080.02011.54
5.3.210.0040.02311.54
5.3.200.0080.01711.46
5.3.190.0040.02111.54
5.3.180.0060.01911.58
5.3.170.0080.02611.49
5.3.160.0080.02411.56
5.3.150.0090.02611.64
5.3.140.0060.02311.46
5.3.130.0060.02111.48
5.3.120.0050.02011.55
5.3.110.0060.02011.56
5.3.100.0080.01811.24
5.3.90.0030.02211.34
5.3.80.0030.02211.18
5.3.70.0050.02211.16
5.3.60.0020.02311.29
5.3.50.0090.02211.19
5.3.40.0020.02411.13
5.3.30.0090.01911.18
5.3.20.0050.01911.00
5.3.10.0050.02110.98
5.3.00.0070.02510.99
5.2.170.0040.0249.72
5.2.160.0020.0179.72
5.2.150.0040.0209.72
5.2.140.0020.0259.72
5.2.130.0050.0169.70
5.2.120.0030.0219.70
5.2.110.0050.0159.71
5.2.100.0040.0199.70
5.2.90.0040.0179.70
5.2.80.0030.0179.70
5.2.70.0030.0189.70
5.2.60.0070.0149.68
5.2.50.0060.0179.66
5.2.40.0050.0219.66
5.2.30.0070.0189.65
5.2.20.0020.0239.64
5.2.10.0040.0179.59
5.2.00.0050.0219.53
5.1.60.0030.0209.17
5.1.50.0060.0139.17
5.1.40.0050.0139.16
5.1.30.0050.0179.34
5.1.20.0040.0219.34
5.1.10.0040.0149.21
5.1.00.0060.0139.20
5.0.50.0050.0138.45
5.0.40.0040.0148.37
5.0.30.0020.0178.28
5.0.20.0020.0138.27
5.0.10.0010.0168.25
5.0.00.0050.0198.25
4.4.90.0010.0107.52
4.4.80.0020.0097.50
4.4.70.0040.0137.51
4.4.60.0010.0117.50
4.4.50.0040.0117.51
4.4.40.0030.0167.48
4.4.30.0020.0097.51
4.4.20.0040.0107.55
4.4.10.0020.0107.55
4.4.00.0020.0147.50
4.3.110.0020.0117.46
4.3.100.0020.0107.46
4.3.90.0020.0097.44
4.3.80.0010.0187.42
4.3.70.0010.0147.44
4.3.60.0010.0097.44
4.3.50.0010.0117.44
4.3.40.0030.0147.39
4.3.30.0030.0096.78
4.3.20.0030.0096.77
4.3.10.0020.0096.74
4.3.00.0020.01011.84

preferences:
64.19 ms | 401 KiB | 5 Q