3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=[[8,9,7],[7,8,9,33,21],[11,12,33,21,9,31]]; $unique=preg_match_all('~\b(\d+)\b(?!.*\b\1\b)~',json_encode($array),$out)?$out[0]:[]; sort($unique); var_export($unique);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => '7', 1 => '8', 2 => '9', 3 => '11', 4 => '12', 5 => '21', 6 => '31', 7 => '33', )

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