3v4l.org

run code in 500+ PHP versions simultaneously
<?php $hidden = [ 'apples' => 19, 'eggs' => 7, 'grapes' => 144, 'mushrooms' => 3, 'oranges' => 16 ]; $list = ['grapes', 'apples', 'eggs', 'oranges']; foreach ($list as $item) { if (isset($hidden[$item])) { $result[] = $hidden[$item]; } } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/Or9rD
function name:  (null)
number of ops:  15
compiled vars:  !0 = $hidden, !1 = $list, !2 = $item, !3 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   10     1        ASSIGN                                                       !1, <array>
   11     2      > FE_RESET_R                                           $6      !1, ->10
          3    > > FE_FETCH_R                                                   $6, !2, ->10
   12     4    >   ISSET_ISEMPTY_DIM_OBJ                             0          !0, !2
          5      > JMPZ                                                         ~7, ->9
   13     6    >   FETCH_DIM_R                                          ~9      !0, !2
          7        ASSIGN_DIM                                                   !3
          8        OP_DATA                                                      ~9
   11     9    > > JMP                                                          ->3
         10    >   FE_FREE                                                      $6
   17    11        INIT_FCALL                                                   'var_export'
         12        SEND_VAR                                                     !3
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.37 ms | 2232 KiB | 14 Q