3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wb_users = array( array( "Username" => "Azmina", "Level" => "form-5", "School" => "KOLEJ D PATINGGI ABANG HJ ABDILLAH, SARAWAK", "SchoolID" => 4522, ), array( "Username" => "Gudako", "Level" => "form-5", "School" => "KOLEJ D PATINGGI ABANG HJ ABDILLAH, SARAWAK", "SchoolID" => 4522, ), array( "Username" => "Takatosaijo29", "Level" => "form-5", "School" => "SEKOLAH MENENGAH KEBANGSAAN BAHANG, SABAH", "SchoolID" => 4210, ), array( "Username" => "Obon", "Level" => "form-5", "School" => "SEKOLAH MENENGAH KEBANGSAAN BAHANG, SABAH", "SchoolID" => 4210, ), array( "Username" => "Rayana12", "Level" => "form-5", "School" => "SEKOLAH MENENGAH KEBANGSAAN BAHANG, SABAH", "SchoolID" => 4210, ), array( "Username" => "kaiyuanbeh", "Level" => "form-5", "School" => "SEKOLAH MENENGAH KEBANGSAAN PERMATANG RAWA, PULAU PINANG", "SchoolID" => 4250, ), array( "Username" => "Divyabharthi", "Level" => "form-5", "School" => "SEKOLAH MENENGAH KEBANGSAAN PETALING, WP KL", "SchoolID" => 4244, ), array( "Username" => "blackchocolatecake", "Level" => "form-4", "School" => "SEKOLAH MENENGAH KEBANGSAAN POI LAM, PERAK", "SchoolID" => 4375, ), ); print_r(array_column($wb_users, 'SchoolID')); $counts = array_count_values((array_column($wb_users, 'SchoolID'))); print_r($counts); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 4522 [1] => 4522 [2] => 4210 [3] => 4210 [4] => 4210 [5] => 4250 [6] => 4244 [7] => 4375 ) Array ( [4522] => 2 [4210] => 3 [4250] => 1 [4244] => 1 [4375] => 1 )

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