3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lookup = ['newsletter' => 'mrktg', 'solus' => 'sponsor']; $profileSubscriptions = ['newsletter', 'solus']; $lists = array_map( function($key) use($lookup) { return $lookup[$key]; }, $profileSubscriptions ); var_dump($profile_subscriptions);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FlaC5
function name:  (null)
number of ops:  13
compiled vars:  !0 = $lookup, !1 = $profileSubscriptions, !2 = $lists, !3 = $profile_subscriptions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'array_map'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FFlaC5%3A6%240'
          4        BIND_LEXICAL                                             ~6, !0
    8     5        SEND_VAL                                                 ~6
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
    6     8        ASSIGN                                                   !2, $7
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FFlaC5%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FlaC5
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $key, !1 = $lookup
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    7     2        FETCH_DIM_R                                      ~2      !1, !0
          3      > RETURN                                                   ~2
    8     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FFlaC5%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.53 ms | 1386 KiB | 17 Q