3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mylocal = array(['language'=>'english', 'language'=>'french', 'language'=>'dutch']); foreach ($mylocal as $key => $value) { if ($value["language"] != "english" && $value["language"] != "spanish" && $value["language"] != "dutch") { unset($mylocal[$key]); } } var_dump($mylocal);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
Branch analysis from position: 14
Branch analysis from position: 10
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/2cfbq
function name:  (null)
number of ops:  22
compiled vars:  !0 = $mylocal, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $4      !0, ->17
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->17
          3    >   ASSIGN                                                   !2, ~5
    5     4        FETCH_DIM_R                                      ~7      !1, 'language'
          5        IS_NOT_EQUAL                                     ~8      ~7, 'english'
          6      > JMPZ_EX                                          ~8      ~8, ->10
          7    >   FETCH_DIM_R                                      ~9      !1, 'language'
          8        IS_NOT_EQUAL                                     ~10     ~9, 'spanish'
          9        BOOL                                             ~8      ~10
         10    > > JMPZ_EX                                          ~8      ~8, ->14
         11    >   FETCH_DIM_R                                      ~11     !1, 'language'
         12        IS_NOT_EQUAL                                     ~12     ~11, 'dutch'
         13        BOOL                                             ~8      ~12
         14    > > JMPZ                                                     ~8, ->16
    6    15    >   UNSET_DIM                                                !0, !2
    4    16    > > JMP                                                      ->2
         17    >   FE_FREE                                                  $4
   10    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.62 ms | 1400 KiB | 15 Q