3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{"name":"xxxxxxxx","phoneNumber":"222223wssd","amount":50.00,"won":false,"date":"2019-05-01T02:35:38"}, {"name":"xxxxxxxx","phoneNumber":"222223wssd","amount":60.05,"won":false,"date":"2019-05-01T09:01:04"}]'; $arr = json_decode($json, true); $unique = array_column($arr, null, 'phoneNumber'); echo count($unique); Var_dump($unique);
Output for git.master, git.master_jit, rfc.property-hooks
1array(1) { ["222223wssd"]=> array(5) { ["name"]=> string(8) "xxxxxxxx" ["phoneNumber"]=> string(10) "222223wssd" ["amount"]=> float(60.05) ["won"]=> bool(false) ["date"]=> string(19) "2019-05-01T09:01:04" } }

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:
187.27 ms | 406 KiB | 5 Q