3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = '<p class="post_content">[iframe width="256" height="175" src="http://www.youtube.com/embed/ICx3AfSlc-w" frameborder="0" allowfullscreen]</p> //www.youtu.be/asdlfkjad_1 https://www.youtube.com/watch?v=dZpc936_Hgo http://youtu.be/lvOFck4dn_8 http://vimeo.com/65484727 http://www.metacafe.com/watch/10599819/are_katy_perry_and_john_mayer_back_together http://www.dailymotion.com/video/xzdijh_hire-data-entry-expert_news <embed style="width:400px; height:326px;" wmode="opaque" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=123456&hl=en" flashvars=""> </embed> <embed src="http://blip.tv/play/gaUIx5A7AA" type="application/x-shockwave-flash" width="320" height="270" allowscriptaccess="always" allowfullscreen="true"></embed> <div class="post_source_linkbar"> <img class="post_source_logo" src="http://economyincrisis.org/wp-content/uploads/2011/08/EICtext5.png"><img class="post_source_icon" title="Economy In Crisis" src="http://www.google.com/s2/favicons?domain=http%3A%2F%2Feconomyincrisis.org%2F">Source</div>'; function media_add($a) { global $_media_list; $_media_list[] = $a[0]; return $a[0]; } function embedded_media($content) { global $_media_list; $_media_list = array(); preg_replace_callback(array( '/(https?:|)\/\/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[?=&+%\w-]*/i', '/(https?:|)\/\/vimeo\.com\/(\d+)/i', '/(https?:|)\/\/www\.metacafe\.com\/watch\/(\d+)\/(\w+)/i', '/(https?:|)\/\/www\.dailymotion\.com[^\/]*\/video\/(\w+)/i', '/(https?:|)\/\/video.google.[A-Za-z\.]{2,5}\/[^\?]+\?docid\=[0-9\-]+/i', '/(https?:|)\/\/blip.tv\/play\/(\w+)/i' ), 'media_add', $content); return $_media_list; } /* http://all4wp.blogspot.com/2008/03/regex-for-embed-video.html https://www.youtube.com/watch?v=dZpc936_Hgo http://youtu.be/lvOFck4dn_8 http://vimeo.com/65484727 http://www.metacafe.com/watch/10599819/are_katy_perry_and_john_mayer_back_together http://www.dailymotion.com/video/xzdijh_hire-data-entry-expert_news */ var_dump(embedded_media($_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.0070.00718.43
8.3.50.0090.00616.52
8.3.40.0090.00919.14
8.3.30.0110.00418.79
8.3.20.0000.01520.35
8.3.10.0030.00623.59
8.3.00.0040.00422.46
8.2.180.0130.01018.66
8.2.170.0090.00922.96
8.2.160.0110.00319.50
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0030.00617.61
8.2.110.0030.00622.37
8.2.100.0000.01218.04
8.2.90.0000.00818.34
8.2.80.0000.00817.97
8.2.70.0040.00417.49
8.2.60.0000.00818.03
8.2.50.0050.00518.07
8.2.40.0040.00421.30
8.2.30.0080.00019.90
8.2.20.0040.00417.86
8.2.10.0030.00618.14
8.2.00.0070.00018.06
8.1.280.0070.01425.92
8.1.270.0060.00320.50
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00319.53
8.1.230.0100.00021.03
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0070.00417.38
8.1.190.0000.00817.60
8.1.180.0030.00618.10
8.1.170.0050.00318.80
8.1.160.0090.00022.03
8.1.150.0000.00818.87
8.1.140.0030.00517.51
8.1.130.0000.00717.72
8.1.120.0000.00817.64
8.1.110.0000.00817.64
8.1.100.0030.00617.59
8.1.90.0000.00817.60
8.1.80.0000.00817.59
8.1.70.0070.00017.49
8.1.60.0040.00417.78
8.1.50.0060.00317.60
8.1.40.0080.00017.74
8.1.30.0000.00817.88
8.1.20.0040.00417.74
8.1.10.0040.00417.71
8.1.00.0040.00417.56
8.0.300.0040.00420.21
8.0.290.0000.00916.88
8.0.280.0070.00018.36
8.0.270.0040.00417.34
8.0.260.0030.00317.19
8.0.250.0000.00717.14
8.0.240.0040.00417.11
8.0.230.0030.00717.01
8.0.220.0050.00217.09
8.0.210.0000.00816.96
8.0.200.0030.00317.08
8.0.190.0060.00317.06
8.0.180.0050.00317.01
8.0.170.0000.00817.00
8.0.160.0000.00717.02
8.0.150.0040.00416.90
8.0.140.0000.00816.88
8.0.130.0000.00713.45
8.0.120.0050.00317.02
8.0.110.0000.00716.95
8.0.100.0060.00316.90
8.0.90.0040.00416.93
8.0.80.0080.00717.02
8.0.70.0040.00416.99
8.0.60.0040.00417.02
8.0.50.0040.00417.14
8.0.30.0160.00517.38
8.0.20.0150.01317.40
8.0.10.0050.00216.96
8.0.00.0090.01016.84
7.4.330.0030.00315.08
7.4.320.0060.00016.76
7.4.300.0030.00316.91
7.4.290.0030.00516.68
7.4.280.0060.00316.76
7.4.270.0080.00016.91
7.4.260.0040.00416.75
7.4.250.0080.00016.73
7.4.240.0050.00316.72
7.4.230.0000.00716.95
7.4.220.0030.01616.82
7.4.210.0040.01216.80
7.4.200.0070.00016.78
7.4.160.0060.01116.71
7.4.150.0150.01217.40
7.4.140.0080.01517.86
7.4.130.0100.00916.84
7.4.120.0070.01216.71
7.4.110.0070.01116.67
7.4.100.0100.01316.64
7.4.90.0110.00716.80
7.4.80.0130.01319.39
7.4.70.0100.00916.64
7.4.60.0130.00616.80
7.4.50.0020.00216.51
7.4.40.0140.00316.71
7.4.30.0150.00616.80
7.4.00.0000.01314.78
7.3.330.0050.00013.38
7.3.320.0000.00913.46
7.3.310.0000.00816.50
7.3.300.0030.00316.47
7.3.290.0050.01216.44
7.3.280.0100.00816.46
7.3.270.0090.00917.40
7.3.260.0000.01716.55
7.3.250.0110.00716.56
7.3.240.0070.01116.45
7.3.230.0150.00916.58
7.3.210.0090.00916.70
7.3.200.0030.01419.39
7.3.190.0120.00616.68
7.3.180.0100.01416.44
7.3.170.0080.00816.69
7.3.160.0130.00616.61
7.2.330.0110.00716.68
7.2.320.0090.00916.83
7.2.310.0060.01616.84
7.2.300.0070.01016.82
7.2.290.0100.01016.78
7.2.00.0130.00319.59
7.1.100.0060.00618.48
7.1.70.0100.00617.50
7.1.60.0110.01420.03
7.1.50.0100.01317.38
7.1.00.0100.06722.57
7.0.200.0360.01014.97
7.0.60.0070.08720.07
7.0.50.0030.08017.95
7.0.40.0070.06020.28
7.0.30.0530.04020.30
7.0.20.0270.07720.19
7.0.10.0300.06320.23
7.0.00.0030.05020.49
5.6.280.0030.03021.14
5.6.210.0130.07720.61
5.6.200.0030.05018.20
5.6.190.0130.07320.64
5.6.180.0330.05720.64
5.6.170.0330.08320.48
5.6.160.0030.09020.51
5.6.150.0030.05018.19
5.6.140.0070.04318.15
5.6.130.0030.09318.28
5.6.120.0070.08721.13
5.6.110.0100.04021.01
5.6.100.0030.04020.98
5.6.90.0130.06721.13
5.6.80.0070.06320.38
5.6.70.0230.05720.41
5.5.350.0300.07320.47
5.5.340.0030.08318.02
5.5.330.0100.06720.27
5.5.320.0270.06320.25
5.5.310.0400.07720.23
5.5.300.0170.05718.01
5.5.290.0070.04017.97
5.5.280.0000.04320.88
5.5.270.0070.08720.87
5.5.260.0030.08720.85
5.5.250.0030.06020.67
5.5.240.0100.07320.27
5.4.450.0800.07319.45
5.4.440.0830.05719.57
5.4.430.0630.06019.54
5.4.420.0730.06019.61
5.4.410.0870.05319.25
5.4.400.0770.04719.24
5.4.390.0670.06019.37
5.4.380.0730.05319.21
5.4.370.0770.06018.98
5.4.360.0630.05719.36
5.4.350.0630.05019.14
5.4.340.0570.05719.36
5.4.320.0630.05319.26
5.4.310.0700.06319.26
5.4.300.0830.04719.26
5.4.290.0730.05019.34
5.4.280.0800.06019.13
5.4.270.0830.04319.24
5.4.260.0730.05019.29
5.4.250.0600.05319.13
5.4.240.0700.05319.01
5.4.230.0700.05019.29
5.4.220.0770.05019.23
5.4.210.0800.05018.89
5.4.200.0670.04716.91
5.4.190.0930.06319.26
5.4.180.0870.06319.03
5.4.170.0630.06019.01
5.4.160.0770.05319.16
5.4.150.0730.05019.10
5.4.140.0700.05716.47
5.4.130.0700.05016.38
5.4.120.0600.05716.56
5.4.110.0700.05016.62
5.4.100.0830.06016.50
5.4.90.0630.06016.58
5.4.80.0700.05016.52
5.4.70.0830.04716.36
5.4.60.0300.06316.48
5.4.50.0030.03716.53
5.4.40.0330.06316.53
5.4.30.0300.06316.53
5.4.20.0000.07016.22

preferences:
49.95 ms | 400 KiB | 5 Q