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); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hCvq5
function name:  (null)
number of ops:  20
compiled vars:  !0 = $wb_users, !1 = $counts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   67     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'array_column'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'SchoolID'
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                                 
   68     8        INIT_FCALL                                               'array_count_values'
          9        INIT_FCALL                                               'array_column'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'SchoolID'
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !1, $6
   69    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   70    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
245.58 ms | 999 KiB | 16 Q