3v4l.org

run code in 500+ PHP versions simultaneously
<?php $configs = [ 'y' => '1', 'x' => (function () { return 'xxx'; })() ]; echo $configs['x'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O0fEm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $configs
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                           ~1      '1', 'y'
    5     1        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          2        INIT_DYNAMIC_CALL                                            ~2
          3        DO_FCALL                                          0  $3      
          4        ADD_ARRAY_ELEMENT                                    ~1      $3, 'x'
    3     5        ASSIGN                                                       !0, ~1
    8     6        FETCH_DIM_R                                          ~5      !0, 'x'
          7        ECHO                                                         ~5
          8      > 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/O0fEm
function name:  {closure:/in/O0fEm:5}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                       'xxx'
          1*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.72 ms | 2267 KiB | 13 Q