3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callbackFunction( $matches) { print_r($matches); return 'lol'; } $pattern = '@\\<img src\\="http\\://((i\\.imgur\\.com))/.+?"@u'; $subject = '[13-Jul-2014 14:07:07 UTC] sdfsdfsdfesdwsasdvesfdrsad<br>&nbsp;<br>&nbsp;<br><img src="http://i.imgur.com/xhQHD6w.gif" alt="xhQHD6w.gif">sdsdfsasfdasfasdas<br>&nbsp;<br><img src="http://i.imgur.com/xhQHD6w.gif" alt="xhQHD6w.gif"><br><img src="http://i.img1ur.com/xhQHD6w.gif" alt="xhQHD6w.gif">'; print_r( preg_replace_callback($pattern, 'callbackFunction', $subject, -1 ) );
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => <img src="http://i.imgur.com/xhQHD6w.gif" [1] => i.imgur.com [2] => i.imgur.com ) Array ( [0] => <img src="http://i.imgur.com/xhQHD6w.gif" [1] => i.imgur.com [2] => i.imgur.com ) [13-Jul-2014 14:07:07 UTC] sdfsdfsdfesdwsasdvesfdrsad<br>&nbsp;<br>&nbsp;<br>lol alt="xhQHD6w.gif">sdsdfsasfdasfasdas<br>&nbsp;<br>lol alt="xhQHD6w.gif"><br><img src="http://i.img1ur.com/xhQHD6w.gif" alt="xhQHD6w.gif">

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:
51.21 ms | 402 KiB | 8 Q