3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = [ 'subject' => 'Hello 7', // normally third parameter 'pattern' => '/[a-z ]/', // normally first parameter // 'limit' // normally fourth parameter, omitted for this demonstration; the default -1 will be used 'count' => &$counted, // normally fifth parameter // ^-- don't forget to make it modifiable! 'replacement' => '', // normally second parameter ]; echo preg_replace(...$params) . "\n" . $counted;
Output for git.master, git.master_jit, rfc.property-hooks
H7 5

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