3v4l.org

run code in 300+ PHP versions simultaneously
<?php function countLetters($matches) { return $matches[0] . '(' . strlen($matches[0]) . ')'; } $input = "Welcome to W3Schools.com!"; $pattern = '/[a-z0-9\.]+/i'; $limit = -1; $count = null; $flag = 0; $result = preg_replace_callback($pattern, 'countLetters', $input, $limit, $count, $flag); echo $result;
Output for git.master_jit, git.master, rfc.property-hooks
Welcome(7) to(2) W3Schools.com(13)!

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:
27.5 ms | 405 KiB | 5 Q