3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'field1' => 1, 'field2' => 2, 'field3' => 3, 'field4' => 4 ); $filter = array('field2', 'field3'); $filtered = array_flip($filter); var_dump($filtered);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sMUDa
function name:  (null)
number of ops:  10
compiled vars:  !0 = $data, !1 = $filter, !2 = $filtered
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   11     2        INIT_FCALL                                               'array_flip'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !2, $5
   13     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.56 ms | 1394 KiB | 17 Q