3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = array ( 0 => array ( 'id' => '63716', 'address' => '62.210.204.189', 'reverse' => NULL, 'server_id' => '51560', ), 1 => array ( 'id' => '63835', 'address' => '62.210.203.55', 'reverse' => '62-210-203-55.rev.poneytelecom.eu.', 'server_id' => '51674', ), 2 => array ( 'id' => '63836', 'address' => '62.210.203.56', 'reverse' => 'cloud.guyellia.com.', 'server_id' => '51675', ), // ... ); $transformed = []; foreach ($original as &$a) { $transformed[$a['server_id']] = $a; } unset($original); var_export($transformed);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/Bc6NI
function name:  (null)
number of ops:  14
compiled vars:  !0 = $original, !1 = $transformed, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   28     1        ASSIGN                                                   !1, <array>
   29     2      > FE_RESET_RW                                      $5      !0, ->8
          3    > > FE_FETCH_RW                                              $5, !2, ->8
   30     4    >   FETCH_DIM_R                                      ~6      !2, 'server_id'
          5        ASSIGN_DIM                                               !1, ~6
          6        OP_DATA                                                  !2
   29     7      > JMP                                                      ->3
          8    >   FE_FREE                                                  $5
   32     9        UNSET_CV                                                 !0
   34    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.63 ms | 1394 KiB | 15 Q