3v4l.org

run code in 300+ PHP versions simultaneously
<?php function media_add($a) { global $media_list; $media_list[] = $a[0]; return $a[0]; } $_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>'; 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); /* 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($media_list);

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.0130.00318.30
8.3.50.0090.01221.29
8.3.40.0090.00918.85
8.3.30.0120.00318.83
8.3.20.0040.00420.41
8.3.10.0080.00023.57
8.3.00.0040.00422.43
8.2.180.0090.01216.63
8.2.170.0110.00722.96
8.2.160.0100.00320.47
8.2.150.0070.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0060.00318.00
8.2.110.0040.00422.10
8.2.100.0100.00317.62
8.2.90.0030.00519.22
8.2.80.0040.00418.00
8.2.70.0060.00317.63
8.2.60.0050.00318.04
8.2.50.0060.00318.07
8.2.40.0040.00421.37
8.2.30.0080.00018.19
8.2.20.0040.00417.87
8.2.10.0040.00418.24
8.2.00.0040.00418.24
8.1.280.0140.00725.92
8.1.270.0080.00020.51
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0030.00624.05
8.1.230.0120.00017.48
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00717.50
8.1.190.0030.00617.48
8.1.180.0000.00818.10
8.1.170.0080.00018.89
8.1.160.0000.00823.75
8.1.150.0030.00618.94
8.1.140.0030.00517.55
8.1.130.0070.00017.77
8.1.120.0050.00317.50
8.1.110.0030.00517.50
8.1.100.0040.00417.66
8.1.90.0040.00417.64
8.1.80.0030.00517.55
8.1.70.0040.00417.64
8.1.60.0030.00617.58
8.1.50.0000.00917.64
8.1.40.0000.00917.65
8.1.30.0050.00317.84
8.1.20.0040.00417.86
8.1.10.0030.00617.63
8.1.00.0090.00017.61
8.0.300.0030.00618.77
8.0.290.0040.00417.00
8.0.280.0000.00718.37
8.0.270.0070.00017.22
8.0.260.0000.00717.22
8.0.250.0040.00416.99
8.0.240.0000.00717.11
8.0.230.0040.00417.09
8.0.220.0080.00017.04
8.0.210.0000.00817.06
8.0.200.0040.00417.00
8.0.190.0060.00317.07
8.0.180.0050.00317.07
8.0.170.0050.00316.94
8.0.160.0040.00417.07
8.0.150.0000.00717.04
8.0.140.0030.00516.96
8.0.130.0030.00313.50
8.0.120.0080.00017.03
8.0.110.0040.00417.02
8.0.100.0000.00716.87
8.0.90.0030.00616.86
8.0.80.0060.00917.02
8.0.70.0000.00716.97
8.0.60.0000.00816.88
8.0.50.0050.00216.98
8.0.30.0080.01117.22
8.0.20.0050.01517.47
8.0.10.0040.00417.05
8.0.00.0080.01216.83
7.4.330.0030.00315.08
7.4.320.0000.00616.61
7.4.300.0040.00416.84
7.4.290.0080.00016.84
7.4.280.0040.00416.84
7.4.270.0050.00216.85
7.4.260.0070.00016.68
7.4.250.0030.00516.77
7.4.240.0010.00716.75
7.4.230.0000.00716.90
7.4.220.0080.01216.74
7.4.210.0110.00316.78
7.4.200.0030.00316.91
7.4.160.0090.00616.84
7.4.150.0190.00017.40
7.4.140.0140.00917.86
7.4.130.0120.00616.69
7.4.120.0030.01616.75
7.4.110.0130.00616.66
7.4.100.0090.01516.75
7.4.90.0130.01016.74
7.4.80.0100.00919.39
7.4.70.0110.00716.77
7.4.60.0100.00716.52
7.4.50.0050.00316.48
7.4.40.0090.00916.80
7.4.30.0120.00616.74
7.4.00.0070.00715.22
7.3.330.0030.00313.36
7.3.320.0000.00513.23
7.3.310.0040.00416.55
7.3.300.0000.00716.46
7.3.290.0030.00316.37
7.3.280.0090.00616.44
7.3.270.0110.00717.40
7.3.260.0140.00716.94
7.3.250.0090.00916.67
7.3.240.0060.01216.85
7.3.230.0100.01316.48
7.3.210.0110.01416.73
7.3.200.0060.01019.39
7.3.190.0060.01116.48
7.3.180.0180.00316.75
7.3.170.0120.00916.49
7.3.160.0150.00316.48
7.2.330.0060.01216.98
7.2.320.0070.01116.67
7.2.310.0110.00616.82
7.2.300.0120.01216.77
7.2.290.0120.00616.70
7.2.00.0000.00919.42
7.1.100.0060.00618.39
7.1.70.0000.00717.36
7.1.60.0090.00620.03
7.1.50.0000.01117.33
7.1.00.0030.07722.49
7.0.200.0410.00015.13
7.0.60.0000.04319.91
7.0.50.0070.04717.95
7.0.40.0000.04720.30
7.0.30.0170.05020.13
7.0.20.0270.05020.27
7.0.10.0100.05320.34
7.0.00.0030.09020.22
5.6.280.0030.07321.11
5.6.210.0130.03020.75
5.6.200.0070.08318.23
5.6.190.0230.06720.45
5.6.180.0130.07720.61
5.6.170.0270.07020.62
5.6.160.0170.07020.50
5.6.150.0030.04318.23
5.6.140.0100.08318.18
5.6.130.0100.08018.18
5.6.120.0070.07721.12
5.6.110.0130.06721.03
5.6.100.0100.06021.01
5.6.90.0000.09021.01
5.6.80.0170.07720.36
5.5.350.4270.04320.32
5.5.340.0070.08317.98
5.5.330.0070.08020.35
5.5.320.0200.07320.34
5.5.310.0230.03320.30
5.5.300.0170.07018.08
5.5.290.0030.08318.02
5.5.280.0100.04020.88
5.5.270.0200.05020.95
5.5.260.0100.08020.80
5.5.250.0000.09320.59
5.5.240.0170.07320.13
5.4.450.0670.05319.17
5.4.440.0700.06719.17
5.4.430.0600.06719.63
5.4.420.0800.04719.60
5.4.410.0630.05319.32
5.4.400.0770.05319.11
5.4.390.0800.04019.24
5.4.380.0770.05019.23
5.4.370.0800.05319.26
5.4.360.0600.05719.24
5.4.350.0730.05319.25
5.4.340.0770.05719.00
5.4.320.0800.05019.15
5.4.310.0570.06019.28
5.4.300.0600.05319.23
5.4.290.0630.05019.00
5.4.280.0670.05018.82
5.4.270.0700.06319.00
5.4.260.0770.05319.00
5.4.250.0630.06019.14
5.4.240.0700.05319.27
5.4.230.0730.05719.09
5.4.220.0730.05719.09
5.4.210.0630.05318.93
5.4.200.0830.05716.68
5.4.190.0830.04318.79
5.4.180.0770.05018.86
5.4.170.0800.07018.95
5.4.160.0700.05018.93
5.4.150.0600.05318.93
5.4.140.0700.04716.54
5.4.130.0570.05316.40
5.4.120.0470.05716.38
5.4.110.0070.05016.30
5.4.100.0170.04316.44
5.4.90.0530.04316.40
5.4.80.0700.05316.28
5.4.70.0700.05716.52
5.4.60.0000.05016.26
5.4.50.0070.03316.54
5.4.40.0170.05716.52
5.4.30.0200.04316.43
5.4.20.0430.05716.54

preferences:
47.67 ms | 401 KiB | 5 Q