3v4l.org

run code in 500+ 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                              ~4      [0]
    5     2        SEND_VAL                                                     ~4
    2     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


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PSMRW
function name:  {closure:/in/PSMRW:2}
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                              ~2      [0]
          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


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

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.11 ms | 2125 KiB | 17 Q