3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $input = range(1,24); // shuffle($input); // $queues = array_chunk($input, 8); $queues = array ( 0 => array ( 0 => 8, 1 => 22, 2 => 13, 3 => 23, 4 => 12, 5 => 10, 6 => 1, 7 => 17, ), 1 => array ( 0 => 14, 1 => 20, 2 => 5, 3 => 11, 4 => 3, 5 => 21, 6 => 15, 7 => 18, ), 2 => array ( 0 => 4, 1 => 9, 2 => 19, 3 => 16, 4 => 24, 5 => 7, 6 => 6, 7 => 2, ), ); array_walk($queues, function(&$v){ sort($v); }); var_dump($queues);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fMsK5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $queues
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FfMsK5%3A7%240'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    9     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FfMsK5%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fMsK5
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'sort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
          4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FfMsK5%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.15 ms | 1395 KiB | 19 Q