3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "The text you want to filter goes here. http://google.com, https://www.youtube.com/watch?v=K_m7NEDMrV0,https://instagram.com/hellow/"; $ns = preg_replace_callback( '#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', function($match) { // print_r($match); return md5($match[0]); }, $string ); print_r($ns);
Output for git.master, git.master_jit, rfc.property-hooks
The text you want to filter goes here. c7b920f57e553df2bb68272f61570210, 5dac0f1fdd90d1d334631ce7eaac3a3f,f7fe4db990c27c1de4b2ecf95986ba7c

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
32.86 ms | 405 KiB | 5 Q