3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'r;anum;l={"5":"10"}'; $output = array(); foreach (explode(';', $input) as $part) { $count = preg_match_all('([a-zA-Z0-9]+)', $part, $matches); $output[] = ($count > 1) ? '[' . implode(',', $matches[0]) . ']' : reset($matches[0]); } print_r($output);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => r [1] => anum [2] => [l,5,10] )

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:
25.96 ms | 401 KiB | 8 Q