3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array('status.1', 'status.2', 'status.3', 'country.244', 'country.24', 'country.845', 'pm.4', 'pm.9', 'pm.6'); $groupedData = array_map(function($arg) { [$key, $val] = explode('.', $arg); return array($key => $val); }, $data); var_dump(array_column($groupedData, 'country'));
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(3) "244" [1]=> string(2) "24" [2]=> string(3) "845" }

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