3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iWannaUseThePikey = array( // Look ma, it's an array 'foo' => '1', 'bar' => '2', 'baz' => '3', 'zip' => '1'); // This doesn't. Let's cast the array to an array just to make sure... oh ok now it's an array $avi = array_count_values((array)$iWannaUseThePikey); var_dump((array)$iWannaUseThePikey); var_dump($avi);

preferences:
42.04 ms | 402 KiB | 5 Q