3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ["name" => "Martin", "type" => "0"], ["name" => "Jack", "type" => "0"], ["name" => "Tiam", "type" => "1"], ]; echo array_count_values(array_column($arr, 'type'))[1];

preferences:
54.64 ms | 402 KiB | 5 Q