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> <iframe width="575" height="324" src="http://cache.vevo.com/m/html/embed.html?video=GBA320903400&autoplay=1" frameborder="0" allowfullscreen></iframe> https://www.facebook.com/FacebookDevelopers/posts/10151471074398553 https://www.facebook.com/video/embed?video_id=10152778880075249 "https://www.facebook.com/FacebookDevelopers/videos/10152454700553553/" <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 ''; } 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?:|)\/\/blip.tv\/play\/(\w+)/i', '/(https?:|)\/\/(?:[0-9A-Z-]+\.)?vevo\.com[^\?]+\?video\=(\w+)/i', '/(https?:|)\/\/www\.facebook\.com\/([^\?]+\?video_id\=\w+|[^\/]*\/videos\/\w+)/i', ), 'media_add', $content); return $_media_list; } 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.40.0040.01218.95
8.3.30.0040.01118.96
8.3.20.0050.00320.29
8.3.10.0090.00023.66
8.3.00.0030.00522.34
8.2.170.0130.00322.96
8.2.160.0070.00719.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00319.89
8.2.110.0000.01020.27
8.2.100.0130.00018.00
8.2.90.0000.00819.35
8.2.80.0000.00817.97
8.2.70.0050.00317.88
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0040.00421.20
8.2.30.0000.00819.75
8.2.20.0030.00617.95
8.2.10.0030.00518.16
8.2.00.0040.00418.24
8.1.270.0080.00020.37
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00624.09
8.1.230.0080.00417.60
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0070.00717.60
8.1.190.0030.00517.48
8.1.180.0040.00418.10
8.1.170.0000.00818.62
8.1.160.0000.00923.78
8.1.150.0040.00418.91
8.1.140.0050.00317.66
8.1.130.0030.00317.59
8.1.120.0000.00717.49
8.1.110.0050.00317.59
8.1.100.0040.00417.61
8.1.90.0040.00417.60
8.1.80.0030.00617.59
8.1.70.0000.00817.65
8.1.60.0030.00617.68
8.1.50.0030.00617.63
8.1.40.0030.00517.61
8.1.30.0040.00417.88
8.1.20.0030.00517.84
8.1.10.0050.00317.61
8.1.00.0080.00017.72
8.0.300.0050.00318.77
8.0.290.0040.00417.00
8.0.280.0040.00418.43
8.0.270.0040.00417.32
8.0.260.0000.00717.21
8.0.250.0000.00817.07
8.0.240.0050.00317.07
8.0.230.0060.00317.12
8.0.220.0000.00716.93
8.0.210.0080.00017.02
8.0.200.0000.00617.06
8.0.190.0090.00017.06
8.0.180.0080.00017.02
8.0.170.0000.00816.90
8.0.160.0000.00716.96
8.0.150.0040.00416.84
8.0.140.0040.00416.91
8.0.130.0030.00313.53
8.0.120.0060.00316.85
8.0.110.0020.00516.90
8.0.100.0000.00816.88
8.0.90.0070.00017.05
8.0.80.0070.01517.05
8.0.70.0000.00816.89
8.0.60.0000.00716.96
8.0.50.0040.00416.90
8.0.30.0120.00817.12
8.0.20.0180.00717.40
8.0.10.0040.00417.02
8.0.00.0100.00916.94
7.4.330.0050.00015.11
7.4.320.0030.00316.78
7.4.300.0030.00316.88
7.4.290.0000.00716.78
7.4.280.0040.00716.86
7.4.270.0000.00716.70
7.4.260.0040.00416.86
7.4.250.0030.00616.81
7.4.240.0060.00216.73
7.4.230.0040.00416.90
7.4.220.0130.00716.82
7.4.210.0080.00716.85
7.4.200.0000.00716.84
7.4.160.0120.00416.41
7.4.150.0110.01117.40
7.4.140.0120.00717.86
7.4.130.0110.00816.79
7.4.120.0120.00516.73
7.4.110.0110.00716.76
7.4.100.0060.01316.46
7.4.90.0070.01116.77
7.4.80.0160.00919.39
7.4.70.0120.00616.86
7.4.60.0120.00616.77
7.4.50.0080.00016.81
7.4.40.0070.01016.60
7.4.30.0090.01116.81
7.4.00.0040.01215.02
7.3.330.0030.00313.33
7.3.320.0000.00713.51
7.3.310.0000.00716.55
7.3.300.0050.00216.38
7.3.290.0040.00416.50
7.3.280.0050.01216.42
7.3.270.0060.01217.40
7.3.260.0100.00716.97
7.3.250.0140.00416.49
7.3.240.0040.01516.52
7.3.230.0130.01316.70
7.3.210.0130.00516.36
7.3.200.0130.00319.39
7.3.190.0090.01216.54
7.3.180.0160.00316.32
7.3.170.0160.00816.55
7.3.160.0070.01316.63
7.2.330.0060.01216.79
7.2.320.0030.01616.94
7.2.310.0110.00816.79
7.2.300.0090.00916.97
7.2.290.0110.01116.93
7.2.60.0090.00616.82
7.1.200.0000.01316.24
7.1.70.0040.00417.52
7.1.60.0070.01820.03
7.1.50.0110.01117.26
7.1.00.0030.07722.32
7.0.200.0290.01014.97
7.0.60.0130.07320.02
7.0.50.0000.06717.93
7.0.40.0100.05720.46
7.0.30.0470.07020.27
7.0.20.0200.06020.09
7.0.10.0070.08720.31
7.0.00.0000.04720.09
5.6.210.0030.09020.54
5.6.200.0130.06718.13
5.6.190.0070.06020.41
5.6.180.0170.05320.42
5.6.170.0400.06320.52
5.6.160.0100.08020.39
5.6.150.0070.08318.18
5.6.140.0000.05718.14
5.6.130.0070.08718.14
5.6.120.0070.05321.01
5.6.110.0170.08721.08
5.6.100.0100.07321.04
5.6.90.0070.08321.04
5.6.80.0100.08020.54
5.5.350.0030.08320.45
5.5.340.0100.08017.94
5.5.330.0070.07020.29
5.5.320.3030.04020.27
5.5.310.0270.04020.30
5.5.300.0070.06717.98
5.5.290.0070.07317.94
5.5.280.0170.08020.88
5.5.270.0170.08020.64
5.5.260.0170.06720.87
5.5.250.0030.04020.62
5.5.240.0030.07720.38
5.4.450.0470.07019.71
5.4.440.0470.06019.47
5.4.430.0470.06019.18
5.4.420.0570.05019.48
5.4.410.0630.06319.46
5.4.400.0530.05319.16
5.4.390.0500.05319.38
5.4.380.0570.06019.15
5.4.370.0670.05319.29
5.4.360.0570.05319.25
5.4.350.0630.05318.85
5.4.340.0470.06019.23
5.4.320.0600.05019.06
5.4.310.0470.05319.27
5.4.300.0530.05319.14
5.4.290.0570.05019.26
5.4.280.0500.05719.38
5.4.270.0430.06318.84
5.4.260.0500.05319.14
5.4.250.0530.07019.12
5.4.240.0500.06019.38
5.4.230.0600.05319.14
5.4.220.0570.05319.05
5.4.210.0730.05719.10
5.4.200.0630.04316.88
5.4.190.0630.05719.01
5.4.180.0600.05319.18
5.4.170.0600.05319.00
5.4.160.0730.05719.32
5.4.150.0630.05019.14
5.4.140.0630.04716.76
5.4.130.0700.03716.38
5.4.120.0530.05316.39
5.4.110.0530.05316.54
5.4.100.0570.05016.49
5.4.90.0670.06716.56
5.4.80.0630.05016.55
5.4.70.0670.04316.59
5.4.60.0030.07716.50
5.4.50.0030.05316.52
5.4.40.0070.04716.23
5.4.30.0270.07316.42
5.4.20.0230.05016.42

preferences:
52.6 ms | 400 KiB | 5 Q