3v4l.org

run code in 300+ PHP versions simultaneously
<?php $resultSet = [ ['keyw' => 'sam , ram,shyam'], ['keyw' => 'sam,ram,shyam, mohan'], ['keyw' => 'sam, ram, shyam ,mohan,salman,babu , karan'], ]; $unique = []; foreach ($resultSet as $row) { $unique += array_flip(preg_split( '/ *, */', $row['keyw'], 0, PREG_SPLIT_NO_EMPTY )); } var_export(array_keys($unique));
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => 'sam', 1 => 'ram', 2 => 'shyam', 3 => 'mohan', 4 => 'salman', 5 => 'babu', 6 => 'karan', )

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