3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach($locales as $key => $code){ if($code == 'DE'){ unset($locales[$key]); } } var_dump(current($locales)); // bool(false)
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 7
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 6
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/PG1jp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $locales, !1 = $code, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $3      !0, ->7
          1    > > FE_FETCH_R                                       ~4      $3, !1, ->7
          2    >   ASSIGN                                                   !2, ~4
    4     3        IS_EQUAL                                                 !1, 'DE'
          4      > JMPZ                                                     ~6, ->6
    5     5    >   UNSET_DIM                                                !0, !2
    3     6    > > JMP                                                      ->1
          7    >   FE_FREE                                                  $3
    9     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'current'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.16 ms | 1395 KiB | 17 Q