3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array('games' => 'Array', 'game' => 'Array', 'Array', 'appID' => 12347, 'logo' => '\'http://www.example.com/logo_12347.jpg\'', 'name' => '\'Game Three\'', 'Array', 'Array', 'userID' => 784523569852145, 'username' => '\'Gamertag\''); array_walk($data['games']['game'], function(&$value, $key) { $value['status'] = 'active'; }); print_r($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U8cK4
function name:  (null)
number of ops:  12
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_walk'
          2        FETCH_DIM_W                                      $2      !0, 'games'
          3        FETCH_DIM_W                                      $3      $2, 'game'
          4        SEND_REF                                                 $3
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FU8cK4%3A5%240'
    7     6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FU8cK4%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U8cK4
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ASSIGN_DIM                                               !0, 'status'
          3        OP_DATA                                                  'active'
    7     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FU8cK4%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.82 ms | 1395 KiB | 17 Q