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.0120.00618.55
8.3.50.0110.00822.98
8.3.40.0070.00718.85
8.3.30.0090.00619.27
8.3.20.0040.00420.20
8.3.10.0070.00723.66
8.3.00.0050.00317.63
8.2.180.0190.00016.86
8.2.170.0070.00722.96
8.2.160.0130.00720.43
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00320.88
8.2.110.0030.00622.16
8.2.100.0090.00318.09
8.2.90.0040.00419.17
8.2.80.0000.00917.97
8.2.70.0060.00317.63
8.2.60.0030.00717.93
8.2.50.0030.00618.07
8.2.40.0060.00320.32
8.2.30.0050.00518.04
8.2.20.0000.00818.00
8.2.10.0040.00418.21
8.2.00.0040.00417.97
8.1.280.0130.00325.92
8.1.270.0040.00423.82
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.83
8.1.230.0100.00018.99
8.1.220.0090.00017.79
8.1.210.0000.00818.77
8.1.200.0090.00017.47
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0040.00421.86
8.1.150.0000.00718.98
8.1.140.0050.00317.54
8.1.130.0030.00317.93
8.1.120.0040.00417.54
8.1.110.0000.00817.51
8.1.100.0000.00717.49
8.1.90.0040.00417.49
8.1.80.0030.00517.59
8.1.70.0030.00317.45
8.1.60.0030.00617.55
8.1.50.0040.00417.64
8.1.40.0040.00417.54
8.1.30.0030.00617.64
8.1.20.0000.00817.77
8.1.10.0030.00517.70
8.1.00.0000.00817.62
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0030.00318.39
8.0.270.0040.00417.30
8.0.260.0000.00617.25
8.0.250.0000.00717.08
8.0.240.0080.00017.05
8.0.230.0040.00417.12
8.0.220.0000.00717.13
8.0.210.0030.00617.12
8.0.200.0030.00317.09
8.0.190.0060.00317.11
8.0.180.0040.00417.06
8.0.170.0040.00416.98
8.0.160.0040.00417.05
8.0.150.0000.00716.93
8.0.140.0040.00416.88
8.0.130.0060.00013.48
8.0.120.0050.00316.99
8.0.110.0040.00417.14
8.0.100.0000.00717.16
8.0.90.0040.00417.13
8.0.80.0180.00417.07
8.0.70.0050.00216.91
8.0.60.0050.00217.09
8.0.50.0000.00817.03
8.0.30.0090.01117.02
8.0.20.0110.00817.40
8.0.10.0000.00817.26
8.0.00.0080.00917.03
7.4.330.0030.00315.17
7.4.320.0030.00316.88
7.4.300.0000.00616.65
7.4.290.0040.00416.66
7.4.280.0070.00016.80
7.4.270.0000.00716.79
7.4.260.0030.00716.67
7.4.250.0030.00616.75
7.4.240.0030.00416.76
7.4.230.0000.00716.64
7.4.220.0030.01416.85
7.4.210.0210.00316.68
7.4.200.0000.00716.83
7.4.160.0090.00916.75
7.4.150.0200.00617.40
7.4.140.0110.01317.86
7.4.130.0080.00916.72
7.4.120.0140.00516.86
7.4.110.0100.00616.78
7.4.100.0060.01216.36
7.4.90.0120.00616.75
7.4.80.0120.00619.39
7.4.70.0080.01716.79
7.4.60.0100.01016.61
7.4.50.0050.00316.81
7.4.40.0120.00416.54
7.4.30.0030.01316.61
7.4.00.0070.01115.07
7.3.330.0060.00013.18
7.3.320.0070.00013.25
7.3.310.0050.00216.22
7.3.300.0030.00316.36
7.3.290.0070.00716.39
7.3.280.0070.00716.46
7.3.270.0070.01817.40
7.3.260.0150.00616.38
7.3.250.0170.00516.60
7.3.240.0180.00016.73
7.3.230.0150.00616.49
7.3.210.0070.01116.53
7.3.200.0180.00319.39
7.3.190.0060.01516.75
7.3.180.0120.00316.64
7.3.170.0170.00016.66
7.3.160.0060.00916.49
7.3.120.0060.00915.07
7.3.110.0040.01214.93
7.3.100.0070.01014.76
7.3.90.0060.00614.91
7.3.80.0030.00815.00
7.3.70.0090.00414.74
7.3.60.0070.00814.80
7.3.50.0050.00815.04
7.3.40.0030.00814.78
7.3.30.0050.01014.99
7.3.20.0080.00716.84
7.3.10.0050.01016.59
7.3.00.0050.01016.89
7.2.330.0090.00916.68
7.2.320.0070.01016.84
7.2.310.0130.00316.88
7.2.300.0140.00316.66
7.2.290.0110.00616.74
7.2.250.0060.01115.20
7.2.240.0080.01215.21
7.2.230.0100.00815.17
7.2.220.0070.00815.29
7.2.210.0050.01015.17
7.2.200.0060.00714.97
7.2.190.0080.00715.02
7.2.180.0050.00615.22
7.2.170.0030.01015.24
7.2.00.0070.01019.63
7.1.330.0080.00616.10
7.1.320.0060.00815.90
7.1.310.0080.00716.03
7.1.300.0090.00316.09
7.1.290.0040.00615.92
7.1.280.0050.00915.86
7.1.270.0070.00315.84
7.1.260.0060.00815.97
7.1.100.0070.00718.03
7.1.70.0100.00317.20
7.1.60.0090.00917.48
7.1.50.0140.00017.14
7.1.40.0080.00416.82
7.1.30.0050.01016.98
7.1.20.0100.00717.22
7.1.10.0090.00317.10
7.1.00.0000.00917.00
7.0.200.0070.00416.91
7.0.190.0080.00517.02
7.0.180.0070.00616.62
7.0.170.0030.01016.58
7.0.160.0060.01016.48
7.0.150.0030.00716.50
7.0.140.0020.00916.65
7.0.130.0050.00516.71
7.0.120.0040.00816.84
7.0.110.0060.00616.71
7.0.100.0060.00616.68
7.0.90.0090.00316.79
7.0.80.0040.00716.50
7.0.70.0080.00016.56
7.0.60.0000.00816.43
7.0.50.0040.00416.67
7.0.40.0030.00916.29
7.0.30.0050.00216.29
7.0.20.0090.00316.29
7.0.10.0090.00716.29
7.0.00.0060.00316.29
5.6.300.0100.04020.79
5.6.290.0070.03720.89
5.6.280.0030.04320.93
5.6.270.0070.04020.96
5.6.260.0030.04420.98
5.6.250.0030.04420.86
5.6.240.0000.04920.96
5.6.230.0000.05620.89
5.6.220.0000.04620.81
5.6.210.0030.04021.00
5.6.200.0030.05820.80
5.6.190.0030.04220.85
5.6.180.0060.04120.86
5.6.170.0130.05421.04
5.6.160.0040.04420.92
5.6.150.0060.04320.73
5.6.140.0090.04021.02
5.6.130.0120.03420.92
5.6.120.0040.04720.82
5.6.110.0080.04220.97
5.6.100.0070.03920.80
5.6.90.0000.04821.00
5.6.80.0100.04220.37
5.6.70.0110.03920.42
5.6.60.0100.03720.39
5.6.50.0090.04120.37
5.6.40.0030.04220.41
5.6.30.0070.04320.12
5.6.20.0070.03920.21
5.6.10.0060.03920.08
5.6.00.0000.04820.16
5.5.380.0030.04417.54
5.5.370.0030.03817.57
5.5.360.0030.04017.39
5.5.350.0030.04017.55
5.5.340.0030.04318.04
5.5.330.0030.04318.02
5.5.320.0060.04418.00
5.5.310.0070.04117.70
5.5.300.0090.04617.95
5.5.290.0030.04818.08
5.5.280.0070.04517.98
5.5.270.0000.04417.70
5.5.260.0060.05417.70
5.5.250.0040.04017.56
5.5.240.0090.03217.41
5.5.230.0030.04017.34
5.5.220.0040.04017.32
5.5.210.0240.03817.43
5.5.200.0060.03817.29
5.5.190.0030.03817.37
5.5.180.0220.03117.09
5.5.160.0130.04117.26
5.5.150.0030.04017.35
5.5.140.0060.03417.21
5.5.130.0030.04017.29
5.5.120.0000.04117.39
5.5.110.0060.03817.36
5.5.100.0120.02917.32
5.5.90.0100.05617.31
5.5.80.0030.04117.27
5.5.70.0030.04816.95
5.5.60.0060.04217.21
5.5.50.0000.06217.27
5.5.40.0060.03417.30
5.5.30.0070.08217.27
5.5.20.0070.06717.26
5.5.10.0030.03817.24
5.5.00.0030.05217.07
5.4.450.0100.04519.23
5.4.440.0000.04919.31
5.4.430.0070.04219.18
5.4.420.0130.03819.46
5.4.410.0030.04519.36
5.4.400.0000.04118.95
5.4.390.0040.05019.07
5.4.380.0030.04019.02
5.4.370.0030.04319.05
5.4.360.0040.04619.14
5.4.350.0000.04519.01
5.4.340.0090.04618.98
5.4.320.0000.04119.01
5.4.310.0130.03219.14
5.4.300.0000.04019.10
5.4.290.0030.04119.06
5.4.280.0040.04318.82
5.4.270.0040.04319.00
5.4.260.0030.03719.02
5.4.250.0000.04718.85
5.4.240.0030.06819.06
5.4.230.0030.04319.13
5.4.220.0040.04019.16
5.4.210.0000.04719.02
5.4.200.0030.07019.13
5.4.190.0030.04119.04
5.4.180.0070.03519.13
5.4.170.0060.03718.84
5.4.160.0000.04019.04
5.4.150.0040.05818.96
5.4.140.0030.03816.70
5.4.130.0130.02516.70
5.4.120.0000.04716.57
5.4.110.0270.02316.43
5.4.100.0090.03616.58
5.4.90.0070.03316.67
5.4.80.0060.03216.48
5.4.70.0060.05616.44
5.4.60.0030.06416.32
5.4.50.0100.03516.62
5.4.40.0000.03916.72
5.4.30.0030.03816.62
5.4.20.0030.03616.50
5.4.10.0060.03716.55
5.4.00.0000.03816.29
5.3.290.0000.04416.29
5.3.280.0070.03716.29
5.3.270.0070.04316.29
5.3.260.0130.07216.29
5.3.250.0040.03616.29
5.3.240.0030.04516.29
5.3.230.0000.04616.29
5.3.220.0040.03916.29
5.3.210.0000.04116.29
5.3.200.0060.03716.29
5.3.190.0110.03216.29
5.3.180.0040.03916.29
5.3.170.0030.04016.29
5.3.160.0070.04016.29
5.3.150.0030.04316.29
5.3.140.0040.03616.29
5.3.130.0030.04416.29
5.3.120.0040.04316.29
5.3.110.0030.03916.29
5.3.100.0060.03816.29
5.3.90.0000.03916.29
5.3.80.0100.03516.29
5.3.70.0030.03716.29
5.3.60.0000.03816.29
5.3.50.0000.03716.29
5.3.40.0030.03916.29
5.3.30.0070.03416.29
5.3.20.0060.03016.29
5.3.10.0070.03616.29
5.3.00.0030.04016.29
5.2.170.0060.02816.29
5.2.160.0030.03416.29
5.2.150.0030.02916.29
5.2.140.0070.02816.29
5.2.130.0000.03316.29
5.2.120.0090.02516.29
5.2.110.0030.02616.29
5.2.100.0030.03016.29
5.2.90.0090.03616.29
5.2.80.0060.03016.29
5.2.70.0000.03416.29
5.2.60.0000.03316.29
5.2.50.0190.03116.29
5.2.40.0030.02916.29
5.2.30.0030.03016.29
5.2.20.0060.02516.29
5.2.10.0000.03416.29
5.2.00.0080.02416.29
5.1.60.0060.02716.29
5.1.50.0030.02616.29
5.1.40.0030.02316.29
5.1.30.0030.03016.29
5.1.20.0030.02616.29
5.1.10.0000.03216.29
5.1.00.0000.03016.29
5.0.50.0030.02116.29
5.0.40.0000.02816.29
5.0.30.0200.02716.29
5.0.20.0000.02516.29
5.0.10.0030.01916.29
5.0.00.0000.03216.29
4.4.90.0050.01316.29
4.4.80.0000.01716.29
4.4.70.0000.02016.29
4.4.60.0030.01616.29
4.4.50.0070.01016.29
4.4.40.0000.02716.29
4.4.30.0030.01816.29
4.4.20.0030.01316.29
4.4.10.0000.02116.29
4.4.00.0000.02716.29
4.3.110.0030.01816.29
4.3.100.0070.01616.29
4.3.90.0000.02116.29
4.3.80.0000.02516.29
4.3.70.0030.01616.29
4.3.60.0200.01216.29
4.3.50.0040.01516.29
4.3.40.0030.03016.29
4.3.30.0000.02116.29
4.3.20.0030.01416.29
4.3.10.0000.01716.29
4.3.00.0030.01316.29

preferences:
43.83 ms | 401 KiB | 5 Q