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.60.0090.00618.55
8.3.50.0130.00921.29
8.3.40.0090.00618.92
8.3.30.0040.01118.97
8.3.20.0080.00020.48
8.3.10.0050.00323.43
8.3.00.0040.00422.31
8.2.180.0130.00716.75
8.2.170.0070.01122.96
8.2.160.0040.01119.46
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00718.00
8.2.110.0060.00620.55
8.2.100.0090.00318.00
8.2.90.0030.00519.30
8.2.80.0000.00917.97
8.2.70.0080.00017.74
8.2.60.0060.00317.92
8.2.50.0030.00618.07
8.2.40.0050.00321.26
8.2.30.0040.00418.20
8.2.20.0030.00517.80
8.2.10.0050.00318.06
8.2.00.0030.00618.25
8.1.280.0090.00925.92
8.1.270.0060.00320.50
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0090.00024.09
8.1.230.0080.00417.61
8.1.220.0080.00017.77
8.1.210.0000.00918.77
8.1.200.0070.00317.48
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0030.00518.83
8.1.160.0040.00421.99
8.1.150.0000.00818.82
8.1.140.0050.00517.55
8.1.130.0070.00017.81
8.1.120.0070.00017.60
8.1.110.0030.00517.48
8.1.100.0040.00417.54
8.1.90.0040.00417.52
8.1.80.0020.00517.59
8.1.70.0000.00817.63
8.1.60.0080.00017.82
8.1.50.0030.00617.61
8.1.40.0000.00817.77
8.1.30.0090.00017.88
8.1.20.0040.00417.82
8.1.10.0030.00617.70
8.1.00.0040.00417.62
8.0.300.0030.00618.77
8.0.290.0070.00016.88
8.0.280.0070.00018.45
8.0.270.0000.00717.28
8.0.260.0030.00317.27
8.0.250.0080.00016.96
8.0.240.0030.00317.05
8.0.230.0030.00616.97
8.0.220.0030.00317.09
8.0.210.0040.00416.93
8.0.200.0000.00717.04
8.0.190.0040.00717.07
8.0.180.0000.00717.06
8.0.170.0030.00617.06
8.0.160.0070.00017.00
8.0.150.0030.00617.01
8.0.140.0000.00816.98
8.0.130.0050.00313.50
8.0.120.0080.00017.00
8.0.110.0000.00816.97
8.0.100.0000.00716.98
8.0.90.0040.00417.00
8.0.80.0110.01117.04
8.0.70.0000.00817.09
8.0.60.0040.00416.83
8.0.50.0000.00717.09
8.0.30.0050.01417.33
8.0.20.0070.01717.57
8.0.10.0030.00517.00
8.0.00.0120.00616.87
7.4.330.0000.00515.08
7.4.320.0000.00616.80
7.4.300.0070.00016.88
7.4.290.0040.00416.76
7.4.280.0060.00616.67
7.4.270.0030.00316.78
7.4.260.0050.00316.77
7.4.250.0000.00716.82
7.4.240.0040.00416.88
7.4.230.0020.00516.92
7.4.220.0140.00616.89
7.4.210.0120.00316.72
7.4.200.0030.00316.61
7.4.160.0130.00316.55
7.4.150.0130.00917.40
7.4.140.0180.00517.86
7.4.130.0070.01316.85
7.4.120.0120.00516.67
7.4.110.0060.01216.88
7.4.100.0090.00916.59
7.4.90.0090.00916.70
7.4.80.0130.01119.39
7.4.70.0070.01416.87
7.4.60.0130.00916.65
7.4.50.0050.00316.49
7.4.40.0110.00616.79
7.4.30.0090.00916.51
7.4.00.0100.00615.32
7.3.330.0050.00013.50
7.3.320.0040.00413.36
7.3.310.0050.00316.41
7.3.300.0030.00516.52
7.3.290.0000.00816.44
7.3.280.0080.01016.40
7.3.270.0120.00617.40
7.3.260.0090.01616.49
7.3.250.0090.01016.48
7.3.240.0150.00216.84
7.3.230.0170.00716.53
7.3.210.0060.01216.88
7.3.200.0060.01019.39
7.3.190.0080.00816.82
7.3.180.0100.01016.62
7.3.170.0090.00916.60
7.3.160.0130.00516.51
7.2.330.0040.01516.74
7.2.320.0060.01216.77
7.2.310.0070.01016.80
7.2.300.0090.00916.82
7.2.290.0110.00716.77
7.1.70.0050.00517.57
7.1.60.0070.01720.03
7.1.50.0060.01217.39
7.1.00.0000.07022.36
7.0.200.0130.01014.97
7.0.60.0170.07019.97
7.0.50.0100.08017.97
7.0.40.0070.09320.10
7.0.30.0200.05720.24
7.0.20.0200.05720.29
7.0.10.0130.07320.11
7.0.00.0100.08020.27
5.6.280.0070.04320.91
5.6.210.0100.08020.54
5.6.200.0100.03318.24
5.6.190.0030.06020.61
5.6.180.0230.06020.56
5.6.170.0170.05720.55
5.6.160.0170.04320.39
5.6.150.0170.07018.21
5.6.140.0070.06018.16
5.6.130.0030.04318.17
5.6.120.0070.08321.13
5.6.110.0100.08321.09
5.6.100.0070.08721.12
5.6.90.0100.08321.11
5.6.80.0100.07720.39
5.5.350.0030.08720.41
5.5.340.0030.05017.94
5.5.330.0100.04720.40
5.5.320.3400.05020.40
5.5.310.0270.08720.24
5.5.300.0030.04017.96
5.5.290.0070.06317.93
5.5.280.0170.07320.75
5.5.270.0070.04020.76
5.5.260.0130.07720.80
5.5.250.0070.09320.69
5.5.240.0000.07020.36
5.4.450.0200.05019.48
5.4.440.0170.05319.14
5.4.430.0170.05319.47
5.4.420.0230.04719.48
5.4.410.0130.05319.46
5.4.400.0100.06019.16
5.4.390.0200.07319.15
5.4.380.0130.05719.08
5.4.370.0070.06319.39
5.4.360.0130.06019.08
5.4.350.0200.05019.15
5.4.340.0130.06019.38
5.4.320.0130.05719.10
5.4.310.0130.05719.26
5.4.300.0230.05019.26
5.4.290.0230.06719.26
5.4.280.0330.04019.38
5.4.270.0200.05019.13
5.4.260.0100.06019.27
5.4.250.0200.05018.87
5.4.240.0170.06319.13
5.4.230.0200.05019.25
5.4.220.0100.06018.98
5.4.210.0230.05319.27
5.4.200.0200.06316.73
5.4.190.0230.07019.00
5.4.180.0230.07019.18
5.4.170.0200.05719.26
5.4.160.0270.04319.25
5.4.150.0170.05319.32
5.4.140.0070.06016.31
5.4.130.0130.05316.44
5.4.120.0170.05016.46
5.4.110.0170.05716.33
5.4.100.0230.06016.54
5.4.90.0170.05316.46
5.4.80.0200.04716.36
5.4.70.0100.06016.52
5.4.60.0070.07016.61
5.4.50.0070.07016.45
5.4.40.0230.03016.52
5.4.30.0370.06016.51
5.4.20.0200.06316.16

preferences:
52.18 ms | 401 KiB | 5 Q