3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_check = array(array("county"=>"Jackson", "state_name"=>"TN"), array("county"=>"Argile", "state_name"=>"TN"), array("county"=>"Jackson", "state_name"=>"TN"), array("county"=>"Jackson", "state_name"=>"MS")); foreach($test_check as $details) { $test[]=$details['county'] . " " . $details['state_name']; } $testb = array_count_values($test); arsort($testb); print_r($testb);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 10
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/QkLJr
function name:  (null)
number of ops:  22
compiled vars:  !0 = $test_check, !1 = $details, !2 = $test, !3 = $testb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_R                                       $5      !0, ->10
          2    > > FE_FETCH_R                                               $5, !1, ->10
    7     3    >   FETCH_DIM_R                                      ~7      !1, 'county'
          4        CONCAT                                           ~8      ~7, '+'
          5        FETCH_DIM_R                                      ~9      !1, 'state_name'
          6        CONCAT                                           ~10     ~8, ~9
          7        ASSIGN_DIM                                               !2
          8        OP_DATA                                                  ~10
    5     9      > JMP                                                      ->2
         10    >   FE_FREE                                                  $5
   10    11        INIT_FCALL                                               'array_count_values'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
   11    15        INIT_FCALL                                               'arsort'
         16        SEND_REF                                                 !3
         17        DO_ICALL                                                 
   13    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.14 ms | 1387 KiB | 19 Q