3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = '<div><div><iframe src="http://blip.tv/play/AYOrznEC.x?p=1" width="720" height="433" frameborder="0" allowfullscreen></iframe><embed type="application/x-shockwave-flash" src="http://a.blip.tv/api.swf#AYOrznEC" style="display:none"></embed></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$2', $_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.0140.00318.56
8.3.50.0140.00523.07
8.3.40.0070.00719.10
8.3.30.0090.00619.09
8.3.20.0040.00420.30
8.3.10.0070.00723.65
8.3.00.0030.00517.63
8.2.180.0090.00916.88
8.2.170.0110.00422.96
8.2.160.0030.01020.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0070.00021.20
8.2.110.0060.00322.20
8.2.100.0090.00318.34
8.2.90.0000.00919.41
8.2.80.0030.00617.97
8.2.70.0000.00917.73
8.2.60.0100.00317.64
8.2.50.0040.00418.07
8.2.40.0050.00320.07
8.2.30.0110.00018.09
8.2.20.0000.01018.04
8.2.10.0030.00518.34
8.2.00.0040.00418.11
8.1.280.0140.00425.92
8.1.270.0080.00024.04
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.77
8.1.230.0070.00418.97
8.1.220.0060.00317.91
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0030.00517.48
8.1.180.0000.00818.10
8.1.170.0040.00418.58
8.1.160.0040.00421.89
8.1.150.0030.00618.86
8.1.140.0000.00817.65
8.1.130.0030.00317.93
8.1.120.0000.00717.54
8.1.110.0040.00417.62
8.1.100.0040.00417.44
8.1.90.0050.00217.54
8.1.80.0060.00317.46
8.1.70.0030.00317.51
8.1.60.0050.00517.68
8.1.50.0000.00817.55
8.1.40.0030.00517.60
8.1.30.0040.00417.73
8.1.20.0040.00417.65
8.1.10.0040.00417.64
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0070.00017.00
8.0.280.0030.00318.42
8.0.270.0080.00017.29
8.0.260.0030.00317.21
8.0.250.0030.00317.02
8.0.240.0040.00417.02
8.0.230.0050.00217.11
8.0.220.0030.00317.00
8.0.210.0000.00917.01
8.0.200.0000.00617.18
8.0.190.0080.00017.09
8.0.180.0080.00017.11
8.0.170.0080.00016.98
8.0.160.0000.00816.90
8.0.150.0050.00316.91
8.0.140.0050.00317.05
8.0.130.0000.00513.53
8.0.120.0000.00816.99
8.0.110.0000.00717.14
8.0.100.0000.00817.02
8.0.90.0000.00717.02
8.0.80.0060.00917.04
8.0.70.0050.00317.13
8.0.60.0050.00317.03
8.0.50.0040.00417.22
8.0.30.0160.00517.36
8.0.20.0120.00717.48
8.0.10.0080.00017.05
8.0.00.0090.00817.07
7.4.330.0030.00315.01
7.4.320.0050.00216.73
7.4.300.0030.00316.87
7.4.290.0070.00016.72
7.4.280.0000.00816.71
7.4.270.0000.00716.87
7.4.260.0070.00016.65
7.4.250.0030.00616.63
7.4.240.0050.00216.75
7.4.230.0040.00416.74
7.4.220.0090.00916.84
7.4.210.0150.00016.68
7.4.200.0040.00416.64
7.4.160.0090.00616.82
7.4.150.0170.00817.40
7.4.140.0110.01017.86
7.4.130.0100.00616.68
7.4.120.0150.00516.61
7.4.110.0090.00916.72
7.4.100.0150.00316.71
7.4.90.0070.01016.57
7.4.80.0090.00919.39
7.4.70.0120.00916.68
7.4.60.0140.00716.54
7.4.50.0050.00316.73
7.4.40.0130.00316.52
7.4.30.0090.00916.88
7.4.00.0120.00415.36
7.3.330.0070.00013.21
7.3.320.0030.00313.35
7.3.310.0070.00016.52
7.3.300.0040.00416.43
7.3.290.0060.00916.43
7.3.280.0070.00916.44
7.3.270.0130.01017.40
7.3.260.0040.01416.70
7.3.250.0060.01116.51
7.3.240.0140.01016.70
7.3.230.0030.01416.43
7.3.210.0060.01216.84
7.3.200.0140.00419.39
7.3.190.0070.01016.53
7.3.180.0180.00416.47
7.3.170.0030.01316.50
7.3.160.0080.00816.71
7.3.10.0120.00516.66
7.3.00.0140.01116.82
7.2.330.0100.00916.79
7.2.320.0110.00616.78
7.2.310.0060.01116.65
7.2.300.0080.00816.72
7.2.290.0090.00616.78
7.2.130.0090.01516.98
7.2.120.0090.01216.87
7.2.110.0160.00316.67
7.2.100.0150.00416.99
7.2.90.0070.01116.83
7.2.80.0110.01516.96
7.2.70.0150.00616.72
7.2.60.0130.00616.82
7.2.50.0060.01016.71
7.2.40.0070.01117.16
7.2.30.0090.00916.96
7.2.20.0140.00316.80
7.2.10.0120.00617.16
7.2.00.0070.00918.14
7.1.250.0180.00515.84
7.1.240.0150.00415.83
7.1.230.0150.00315.70
7.1.220.0110.00815.63
7.1.210.0080.01115.36
7.1.200.0070.01015.79
7.1.190.0080.00815.93
7.1.180.0080.01316.08
7.1.170.0140.00316.03
7.1.160.0200.00016.00
7.1.150.0140.00315.99
7.1.140.0110.00715.83
7.1.130.0060.00915.96
7.1.120.0070.00715.88
7.1.110.0090.00316.02
7.1.100.0070.00617.16
7.1.90.0110.00716.12
7.1.80.0030.01316.03
7.1.70.0060.00616.62
7.1.60.0050.01617.65
7.1.50.0120.00916.44
7.1.40.0090.01215.93
7.1.30.0170.00315.93
7.1.20.0120.00616.06
7.1.10.0070.01115.64
7.1.00.0110.04319.23
7.0.330.0210.00015.25
7.0.320.0190.00415.24
7.0.310.0140.00015.19
7.0.300.0240.00415.53
7.0.290.0150.00715.67
7.0.280.0130.00915.85
7.0.270.0140.01015.62
7.0.260.0130.01315.36
7.0.250.0120.01415.70
7.0.240.0140.01415.77
7.0.230.0120.01215.69
7.0.220.0170.00715.46
7.0.210.0140.01415.75
7.0.200.0180.00315.27
7.0.190.0270.00315.84
7.0.180.0060.01415.59
7.0.170.0210.00715.72
7.0.160.0130.00915.25
7.0.150.0120.01215.43
7.0.140.0110.04018.63
7.0.130.0140.01415.73
7.0.120.0140.01015.68
7.0.110.0210.00715.68
7.0.100.0130.01115.44
7.0.90.0070.01515.41
7.0.80.0120.01215.57
7.0.70.0170.00615.52
7.0.60.0060.04217.76
7.0.50.0150.03816.70
7.0.40.0090.02316.80
7.0.30.0220.03616.64
7.0.20.0170.04316.72
7.0.10.0110.02016.89
7.0.00.0100.03516.73
5.6.380.0040.00813.82
5.6.370.0060.01214.30
5.6.360.0030.01014.52
5.6.350.0030.00714.18
5.6.340.0060.00913.97
5.6.330.0080.00514.16
5.6.320.0040.00814.26
5.6.310.0030.01114.37
5.6.300.0100.00314.54
5.6.290.0070.00414.27
5.6.280.0060.04017.77
5.6.270.0070.00714.48
5.6.260.0070.00714.34
5.6.250.0140.00314.29
5.6.240.0070.00714.09
5.6.230.0040.01114.40
5.6.220.0070.00314.11
5.6.210.0050.04717.34
5.6.200.0090.02516.24
5.6.190.0080.04417.23
5.6.180.0200.03817.32
5.6.170.0200.02817.46
5.6.160.0080.04317.34
5.6.150.0080.02416.17
5.6.140.0110.01816.13
5.6.130.0070.04716.28
5.6.120.0100.03517.82
5.6.110.0080.04417.75
5.6.100.0100.02717.62
5.6.90.0080.04417.84
5.6.80.0070.04017.28
5.6.70.0000.01213.94
5.6.60.0030.00714.05
5.6.50.0140.00014.23
5.6.40.0000.01014.20
5.6.30.0000.01014.17
5.6.20.0070.00714.05
5.6.10.0070.00713.93
5.6.00.0040.01114.02
5.5.380.0070.00411.05
5.5.370.0000.00611.03
5.5.360.0030.01011.00
5.5.350.0130.03515.77
5.5.340.0070.03714.64
5.5.330.0070.03815.68
5.5.320.0220.04115.70
5.5.310.0080.02515.64
5.5.300.0070.03214.41
5.5.290.0050.02414.38
5.5.280.0060.02816.01
5.5.270.0050.04715.95
5.5.260.0070.03515.89
5.5.250.0050.03115.80
5.5.240.2120.02315.47
5.5.230.0000.00611.02
5.5.220.0000.00810.89
5.5.210.0040.00410.71
5.5.200.0000.00510.71
5.5.190.0000.01410.87
5.5.180.0070.00010.79
5.5.170.0050.00810.74
5.5.160.0030.01010.71
5.5.150.0000.01310.83
5.5.140.0060.00310.71
5.5.130.0030.00710.71
5.5.120.0080.00611.11
5.5.110.0000.01310.71
5.5.100.0030.00810.89
5.5.90.0040.00810.98
5.5.80.0000.01110.99
5.5.70.0070.00710.80
5.5.60.0040.00811.15
5.5.50.0080.00511.12
5.5.40.0070.00410.71
5.5.30.0040.00810.89
5.5.20.0040.00910.87
5.5.10.0000.00911.02
5.5.00.0030.00610.71
5.4.450.0180.02215.22
5.4.440.0080.03015.11
5.4.430.0490.01615.15
5.4.420.0370.03215.30
5.4.410.0280.02715.03
5.4.400.0350.02614.92
5.4.390.0180.02915.01
5.4.380.0070.03014.87
5.4.370.0090.02814.72
5.4.360.0080.02914.72
5.4.350.0050.03414.75
5.4.340.0110.02714.92
5.4.330.0050.00511.07
5.4.320.0080.01911.59
5.4.310.0030.02511.62
5.4.300.0060.02311.59
5.4.290.0080.02511.58
5.4.280.0050.02911.53
5.4.270.0040.02411.53
5.4.260.0050.02211.55
5.4.250.0040.02411.59
5.4.240.0030.02411.59
5.4.230.0050.02211.61
5.4.220.0020.02511.58
5.4.210.0060.01911.58
5.4.200.0070.02511.58
5.4.190.0060.02011.66
5.4.180.0020.02611.66
5.4.170.0030.02411.53
5.4.160.0100.02511.53
5.4.150.0070.01911.52
5.4.140.0040.02211.39
5.4.130.0060.02011.50
5.4.120.0040.02511.43
5.4.110.0070.02411.35
5.4.100.0020.02411.44
5.4.90.0030.02511.45
5.4.80.0050.02011.56
5.4.70.0070.01911.34
5.4.60.0050.02211.45
5.4.50.0060.02111.46
5.4.40.0080.01811.51
5.4.30.0020.02611.52
5.4.20.0070.02111.35
5.4.10.0060.02111.54
5.4.00.0070.02011.17
5.3.290.0060.02211.76
5.3.280.0050.02311.71
5.3.270.0050.02311.71
5.3.260.0070.02811.71
5.3.250.0070.02611.71
5.3.240.0080.02011.71
5.3.230.0030.03111.71
5.3.220.0080.01911.69
5.3.210.0050.02511.70
5.3.200.0090.01811.69
5.3.190.0080.02111.69
5.3.180.0060.02511.69
5.3.170.0080.01911.69
5.3.160.0020.02311.69
5.3.150.0060.02011.69
5.3.140.0070.02011.68
5.3.130.0090.02511.68
5.3.120.0050.02311.68
5.3.110.0080.01911.68
5.3.100.0060.02511.41
5.3.90.0060.02011.40
5.3.80.0060.02111.39
5.3.70.0050.01911.39
5.3.60.0080.02311.38
5.3.50.0050.02111.35
5.3.40.0040.02511.35
5.3.30.0070.01811.33
5.3.20.0080.01911.22
5.3.10.0080.02111.21
5.3.00.0060.02211.20
5.2.170.0020.0219.95
5.2.160.0020.0199.95
5.2.150.0040.0189.95
5.2.140.0060.0179.95
5.2.130.0020.0209.93
5.2.120.0050.0169.93
5.2.110.0030.0189.93
5.2.100.0050.0169.93
5.2.90.0060.0199.93
5.2.80.0050.0179.93
5.2.70.0080.0149.93
5.2.60.0050.0169.91
5.2.50.0050.0249.89
5.2.40.0060.0179.88
5.2.30.0060.0189.87
5.2.20.0060.0189.86
5.2.10.0020.0259.82
5.2.00.0040.0189.76
5.1.60.0040.0189.40
5.1.50.0040.0179.39
5.1.40.0060.0199.39
5.1.30.0060.0189.56
5.1.20.0090.0149.57
5.1.10.0030.0169.44
5.1.00.0040.0169.43
5.0.50.0040.0128.68
5.0.40.0020.0138.60
5.0.30.0030.0178.51
5.0.20.0010.0138.49
5.0.10.0020.0148.48
5.0.00.0020.0168.48
4.4.90.0070.0067.74
4.4.80.0010.0117.73
4.4.70.0020.0117.73
4.4.60.0010.0147.73
4.4.50.0060.0087.74
4.4.40.0010.0197.71
4.4.30.0040.0097.73
4.4.20.0020.0097.78
4.4.10.0060.0077.78
4.4.00.0030.0177.73
4.3.110.0030.0107.69
4.3.100.0030.0097.69
4.3.90.0040.0117.67
4.3.80.0040.0177.64
4.3.70.0040.0127.67
4.3.60.0030.0077.67
4.3.50.0030.0097.67
4.3.40.0030.0157.62
4.3.30.0030.0107.00
4.3.20.0030.0086.99
4.3.10.0040.0086.97
4.3.00.0050.01212.07

preferences:
40.7 ms | 401 KiB | 5 Q