3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function () { $hookInfo = [function () {}]; $hooks[][] = [$hookInfo]; }); $options = [ 'sort' => [] ]; $defaultOption = ['sort' => []]; $sort = &$options['sort']; $sort['direction'] = 'asc'; $val = array_merge($defaultOption, $options); extract($val); print_r($val);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PSMRW
function name:  (null)
number of ops:  22
compiled vars:  !0 = $options, !1 = $defaultOption, !2 = $sort, !3 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FPSMRW%3A2%240'
    5     2        SEND_VAL                                                 ~4
          3        DO_ICALL                                                 
    7     4        ASSIGN                                                   !0, <array>
   10     5        ASSIGN                                                   !1, <array>
   12     6        FETCH_DIM_W                                      $8      !0, 'sort'
          7        ASSIGN_REF                                               !2, $8
   13     8        ASSIGN_DIM                                               !2, 'direction'
          9        OP_DATA                                                  'asc'
   15    10        INIT_FCALL                                               'array_merge'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
   16    15        INIT_FCALL                                               'extract'
         16        SEND_REF                                                 !3
         17        DO_ICALL                                                 
   18    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FPSMRW%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PSMRW
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $hookInfo, !1 = $hooks
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FPSMRW%3A3%241'
          1        INIT_ARRAY                                       ~3      ~2
          2        ASSIGN                                                   !0, ~3
    4     3        INIT_ARRAY                                       ~7      !0
          4        FETCH_DIM_W                                      $5      !1
          5        ASSIGN_DIM                                               $5
          6        OP_DATA                                                  ~7
    5     7      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FPSMRW%3A2%240

Function %00%7Bclosure%7D%2Fin%2FPSMRW%3A3%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PSMRW
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FPSMRW%3A3%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.46 ms | 1396 KiB | 21 Q