3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'games' => array( 'game' => array( array('appID' => 12345, 'logo' => 'http://www.example.com/logo_12345.jpg', 'name' => 'Game One'), array('appID' => 12346, 'logo' => 'http://www.example.com/logo_12346.jpg', 'name' => 'Game Two'), array('appID' => 12347, 'logo' => 'http://www.example.com/logo_12347.jpg', 'name' => 'Game Three'), 'userID' => 784523569852145, 'username' => 'Gamertag', ), ), ); array_walk($data['games']['game'], function(&$value) { if (is_array($value)) $value['status'] = 'active'; }); print_r($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/emHvD
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>
   15     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%2FemHvD%3A15%240'
   18     6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
   20     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FemHvD%3A15%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.4 ms | 1386 KiB | 17 Q