3v4l.org

run code in 300+ PHP versions simultaneously
<?php $map = array(array('-1'=>0, '-10'=>0, '-100'=>0), array(array('-1'=>0, '-10'=>0, '-100'=>0))); array_map(function($item){var_dump($item);if(is_array($item))ksort($item);}, $map); print_r($map);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o68Yd
function name:  (null)
number of ops:  10
compiled vars:  !0 = $map
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fo68Yd%3A4%240'
          3        SEND_VAL                                                 ~2
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fo68Yd%3A4%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/o68Yd
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4        TYPE_CHECK                                  128          !0
          5      > JMPZ                                                     ~2, ->9
          6    >   INIT_FCALL                                               'ksort'
          7        SEND_REF                                                 !0
          8        DO_ICALL                                                 
          9    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fo68Yd%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.43 ms | 1395 KiB | 21 Q