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', $_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.60.0040.01116.75
8.3.50.0090.00822.96
8.3.40.0070.00718.94
8.3.30.0120.00319.08
8.3.20.0040.00420.20
8.3.10.0080.00023.70
8.3.00.0030.00619.50
8.2.180.0040.01116.63
8.2.170.0060.01222.96
8.2.160.0110.00420.47
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0030.01626.16
8.2.120.0060.00321.06
8.2.110.0060.00321.18
8.2.100.0100.00317.97
8.2.90.0040.00419.11
8.2.80.0050.00517.97
8.2.70.0000.00817.63
8.2.60.0000.00817.92
8.2.50.0000.00818.07
8.2.40.0030.00518.34
8.2.30.0070.00318.16
8.2.20.0040.00418.13
8.2.10.0040.00418.23
8.2.00.0050.00317.95
8.1.280.0060.00925.92
8.1.270.0050.00323.95
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00319.40
8.1.230.0040.00819.15
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0060.00617.35
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0040.00422.04
8.1.150.0090.00018.95
8.1.140.0000.00717.50
8.1.130.0000.00717.88
8.1.120.0040.00417.59
8.1.110.0040.00417.51
8.1.100.0000.00717.45
8.1.90.0030.00417.46
8.1.80.0040.00417.56
8.1.70.0000.00717.52
8.1.60.0030.00617.73
8.1.50.0050.00317.64
8.1.40.0050.00317.63
8.1.30.0000.00917.79
8.1.20.0000.00717.79
8.1.10.0050.00317.71
8.1.00.0050.00317.63
8.0.300.0030.00618.77
8.0.290.0060.00316.88
8.0.280.0000.00718.40
8.0.270.0040.00417.30
8.0.260.0030.00317.30
8.0.250.0040.00417.07
8.0.240.0030.00617.08
8.0.230.0000.00716.98
8.0.220.0040.00417.05
8.0.210.0000.00917.04
8.0.200.0000.00716.99
8.0.190.0030.00617.02
8.0.180.0000.00717.12
8.0.170.0000.00716.92
8.0.160.0070.00017.08
8.0.150.0030.00316.83
8.0.140.0000.00717.02
8.0.130.0060.00013.48
8.0.120.0050.00217.14
8.0.110.0030.00517.12
8.0.100.0000.00717.11
8.0.90.0050.00216.93
8.0.80.0090.01217.03
8.0.70.0040.00417.16
8.0.60.0080.00017.12
8.0.50.0070.00017.18
8.0.30.0150.00517.29
8.0.20.0130.00617.40
8.0.10.0040.00417.20
8.0.00.0110.00917.09
7.4.330.0030.00315.11
7.4.320.0000.00716.87
7.4.300.0000.00716.88
7.4.290.0040.00416.79
7.4.280.0000.00816.78
7.4.270.0000.00716.84
7.4.260.0000.00716.82
7.4.250.0020.00516.65
7.4.240.0040.00416.83
7.4.230.0040.00416.83
7.4.220.0070.01116.86
7.4.210.0100.00316.71
7.4.200.0080.00016.92
7.4.160.0080.00816.75
7.4.150.0130.00717.40
7.4.140.0120.00917.86
7.4.130.0120.00616.68
7.4.120.0070.01016.75
7.4.110.0190.00316.59
7.4.100.0070.01116.69
7.4.90.0080.00816.62
7.4.80.0060.00919.39
7.4.70.0150.00816.66
7.4.60.0110.01116.71
7.4.50.0030.00516.79
7.4.40.0030.01716.63
7.4.30.0000.01716.59
7.4.00.0140.00315.05
7.3.330.0000.00613.37
7.3.320.0030.00313.38
7.3.310.0030.00616.26
7.3.300.0000.00716.29
7.3.290.0050.01016.61
7.3.280.0100.00716.40
7.3.270.0070.01117.40
7.3.260.0140.00416.73
7.3.250.0090.00816.61
7.3.240.0090.00916.38
7.3.230.0160.00616.77
7.3.210.0030.01316.61
7.3.200.0030.01919.39
7.3.190.0120.00916.81
7.3.180.0120.00316.66
7.3.170.0170.00316.68
7.3.160.0080.00816.43
7.3.120.0040.01115.14
7.3.110.0070.01015.07
7.3.100.0060.00614.97
7.3.90.0090.00614.96
7.3.80.0120.00314.93
7.3.70.0070.01014.89
7.3.60.0070.01015.07
7.3.50.0060.00915.10
7.3.40.0030.01315.05
7.3.30.0090.00614.82
7.3.20.0070.00716.98
7.3.10.0100.00616.62
7.3.00.0100.01016.72
7.2.330.0100.00716.70
7.2.320.0130.00516.80
7.2.310.0110.00516.91
7.2.300.0040.01216.82
7.2.290.0040.01216.66
7.2.240.0100.00715.15
7.2.230.0060.00915.14
7.2.220.0060.01315.02
7.2.210.0130.00614.80
7.2.200.0060.01014.82
7.2.190.0050.00515.39
7.2.180.0070.00715.00
7.2.170.0100.00714.96
7.2.160.0040.01215.09
7.2.150.0000.01216.66
7.2.140.0110.00417.00
7.2.130.0070.00816.94
7.2.120.0080.00916.85
7.2.110.0090.00816.80
7.2.100.0050.01016.87
7.2.90.0080.01017.07
7.2.80.0080.00916.96
7.2.70.0150.00417.03
7.2.60.0060.00916.88
7.2.50.0040.01416.91
7.2.40.0100.01117.08
7.2.30.0100.01017.09
7.2.20.0060.01416.90
7.2.10.0150.00816.93
7.2.00.0140.00816.94
7.1.330.0040.00716.09
7.1.320.0040.01115.97
7.1.310.0100.00616.03
7.1.300.0070.01115.94
7.1.290.0140.00415.82
7.1.280.0030.01415.91
7.1.270.0110.00416.03
7.1.260.0040.00716.20
7.1.250.0100.00515.88
7.1.200.0040.01115.94
7.1.100.1510.01718.37
7.1.70.0000.00717.45
7.1.60.0140.01019.40
7.1.50.0140.01116.90
7.1.00.0100.07022.50
7.0.200.0240.00314.82
7.0.140.0030.07022.10
7.0.60.0030.04719.97
7.0.50.0100.03717.84
7.0.40.0100.04020.13
7.0.30.0230.04720.13
7.0.20.0230.04720.04
7.0.10.0100.09020.20
7.0.00.0230.03320.20
5.6.280.0070.07020.98
5.6.210.0070.08020.43
5.6.200.0070.08018.19
5.6.190.0030.06320.67
5.6.180.0330.07020.40
5.6.170.0130.04720.33
5.6.160.0030.05320.54
5.6.150.0100.08018.17
5.6.140.0000.04018.10
5.6.130.0070.08318.11
5.6.120.0130.07720.96
5.6.110.0130.07721.00
5.6.100.0170.07320.96
5.6.90.0000.05321.00
5.6.80.0130.08020.41
5.5.350.0070.08020.43
5.5.340.0130.04317.99
5.5.330.0070.08320.21
5.5.320.0330.06720.29
5.5.310.0400.06720.21
5.5.300.0100.07017.98
5.5.290.0130.06317.91
5.5.280.0000.04320.87
5.5.270.0070.05720.71
5.5.260.0130.07720.67
5.5.250.0030.07020.77
5.5.240.2070.03320.34
5.4.450.0130.04019.49
5.4.440.0300.04019.44
5.4.430.0370.04319.12
5.4.420.0470.04319.54
5.4.410.0200.04319.28
5.4.400.0370.04019.09
5.4.390.0200.03719.24
5.4.380.0200.04718.57
5.4.370.0170.05318.72
5.4.360.0100.05318.57
5.4.350.0130.05718.66
5.4.340.0100.06018.58
5.4.320.0050.04112.45
5.4.310.0100.03412.45
5.4.300.0080.04412.45
5.4.290.0050.03812.45
5.4.280.0070.03812.34
5.4.270.0110.03012.35
5.4.260.0060.04512.35
5.4.250.0060.05412.35
5.4.240.0070.03512.35
5.4.230.0060.03712.34
5.4.220.0050.03612.34
5.4.210.0050.03612.34
5.4.200.0080.03612.34
5.4.190.0030.04212.34
5.4.180.0080.03512.33
5.4.170.0080.03412.34
5.4.160.0080.03412.34
5.4.150.0050.04012.34
5.4.140.0040.03912.02
5.4.130.0050.03512.01
5.4.120.0060.03511.96
5.4.110.0070.03411.96
5.4.100.0140.02511.97
5.4.90.0090.03711.96
5.4.80.0090.04811.97
5.4.70.0060.03411.96
5.4.60.0070.03411.96
5.4.50.0090.03211.96
5.4.40.0050.03511.95
5.4.30.0050.03511.95
5.4.20.0060.03411.95
5.4.10.0090.05011.95
5.4.00.0070.03811.43
5.3.290.0060.03812.80
5.3.280.0080.03512.71
5.3.270.0060.03812.72
5.3.260.0080.03712.72
5.3.250.0110.03412.72
5.3.240.0080.03612.72
5.3.230.0060.04212.71
5.3.220.0050.03812.68
5.3.210.0030.04112.68
5.3.200.0090.04212.68
5.3.190.0080.03512.68
5.3.180.0080.05512.67
5.3.170.0100.04512.67
5.3.160.0070.03712.68
5.3.150.0090.04412.67
5.3.140.0070.04112.66
5.3.130.0060.03912.66
5.3.120.0080.03912.66
5.3.110.0080.03712.66
5.3.100.0070.03812.12
5.3.90.0060.03712.09
5.3.80.0080.03412.07
5.3.70.0050.03612.07
5.3.60.0030.03812.06
5.3.50.0050.03612.00
5.3.40.0090.03512.00
5.3.30.0070.03511.96
5.3.20.0030.03811.74
5.3.10.0070.04111.71
5.3.00.0060.03411.70
5.2.170.0060.0379.19
5.2.160.0030.0349.20
5.2.150.0060.0299.19
5.2.140.0110.0329.19
5.2.130.0030.0369.15
5.2.120.0030.0299.15
5.2.110.0070.0389.16
5.2.100.0050.0279.15
5.2.90.0020.0319.15
5.2.80.0050.0299.15
5.2.70.0040.0379.15
5.2.60.0060.0299.10
5.2.50.0040.0339.07
5.2.40.0050.0339.06
5.2.30.0030.0339.04
5.2.20.0050.0289.02
5.2.10.0060.0268.95
5.2.00.0030.0308.80
5.1.60.0050.0258.08
5.1.50.0070.0228.08
5.1.40.0050.0258.06
5.1.30.0030.0278.41
5.1.20.0060.0248.44
5.1.10.0070.0228.16
5.1.00.0030.0278.16
5.0.50.0020.0226.64
5.0.40.0020.0206.49
5.0.30.0040.0306.30
5.0.20.0040.0196.28
5.0.10.0040.0226.25
5.0.00.0030.0366.24
4.4.90.0030.0284.78
4.4.80.0040.0214.75
4.4.70.0020.0214.75
4.4.60.0060.0164.75
4.4.50.0030.0144.77
4.4.40.0030.0234.71
4.4.30.0020.0164.76
4.4.20.0030.0164.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0040.0144.67
4.3.100.0060.0264.66
4.3.90.0000.0174.63
4.3.80.0020.0244.58
4.3.70.0020.0304.63
4.3.60.0040.0224.63
4.3.50.0060.0244.63
4.3.40.0030.0364.54
4.3.30.0030.0263.30
4.3.20.0000.0183.28
4.3.10.0030.0143.23
4.3.00.0000.01313.43

preferences:
45.7 ms | 401 KiB | 5 Q