3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matrix = [ [1, 2, 3], [4, 5, 6], [7, 8, 9], ]; var_export(array_map('array_reverse', array_map(null, ...$matrix))); /* Desired: [[7,4,1], [8,5,2], [9,6,3]] */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0BAPZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $matrix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 'array_reverse'
          4        INIT_FCALL                                               'array_map'
          5        SEND_VAL                                                 null
          6        SEND_UNPACK                                              !0
          7        CHECK_UNDEF_ARGS                                         
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
   14    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.19 ms | 1398 KiB | 17 Q