3v4l.org

run code in 300+ PHP versions simultaneously
<?php $scores = [ 'user_a' => [75, 67, 80, 90, 20, 80], 'user_b' => [65, 70, 80, 90, 20, 80], 'user_c' => [56, 70, 75, 80, 50, 70], 'user_d' => [40, 50, 89, 56, 45, 78], 'user_e' => [60, 80, 90, 78, 80, 76], ]; $max = array_map( 'max', array_map(null, ...array_values($scores)) ); print_r($max);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cmalS
function name:  (null)
number of ops:  18
compiled vars:  !0 = $scores, !1 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'array_map'
   12     2        SEND_VAL                                                 'max'
   13     3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 null
          5        INIT_FCALL                                               'array_values'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_UNPACK                                              $3
          9        CHECK_UNDEF_ARGS                                         
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
   11    13        ASSIGN                                                   !1, $5
   15    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.78 ms | 1394 KiB | 19 Q