3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 6; $list = [ '1楼', '2楼', '3楼', '4楼', '5楼', ]; $list = array_flip( array_map(function($key) use ($start) { return $start + (int)$key; }, array_flip($list)) ); var_dump($list);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O8rXf
function name:  (null)
number of ops:  19
compiled vars:  !0 = $start, !1 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 6
    4     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'array_flip'
          3        INIT_FCALL                                               'array_map'
          4        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          5        BIND_LEXICAL                                             ~4, !0
          6        SEND_VAL                                                 ~4
          7        INIT_FCALL                                               'array_flip'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
    8    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > 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/O8rXf
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $key, !1 = $start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        CAST                                          4  ~2      !0
          3        ADD                                              ~3      !1, ~2
          4      > RETURN                                                   ~3
          5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.64 ms | 1012 KiB | 16 Q