3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( 0 => 1 , 1 => 2 , 2 => 2 , 3 => 1 , 4 => 2 , 5 => 2, ) ; $temp = array_count_values($arr); echo array_search(max($temp), $temp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EVcGr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'array_count_values'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   12     5        INIT_FCALL                                               'array_search'
          6        INIT_FCALL                                               'max'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        ECHO                                                     $6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.79 ms | 1006 KiB | 16 Q