3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ "$pkgHandle", "$appVersionRequired", "$pkgVersion", "$_SESSION", "$_SESSION" ]; $found = []; $grepped = array_keys($a, '$_SESSION'); if ($grepped) { $success = false; foreach ($grepped as $found_key) { $found[] = $a[$found_key]; } } var_dump($found);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 27
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 27
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 28
filename:       /in/gKu7q
function name:  (null)
number of ops:  32
compiled vars:  !0 = $a, !1 = $pkgHandle, !2 = $appVersionRequired, !3 = $pkgVersion, !4 = $found, !5 = $grepped, !6 = $success, !7 = $found_key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          6  ~8      !1
          1        INIT_ARRAY                                       ~9      ~8
    4     2        CAST                                          6  ~10     !2
          3        ADD_ARRAY_ELEMENT                                ~9      ~10
    5     4        CAST                                          6  ~11     !3
          5        ADD_ARRAY_ELEMENT                                ~9      ~11
    6     6        FETCH_R                      global              ~12     '_SESSION'
          7        CAST                                          6  ~13     ~12
          8        ADD_ARRAY_ELEMENT                                ~9      ~13
    7     9        FETCH_R                      global              ~14     '_SESSION'
         10        CAST                                          6  ~15     ~14
         11        ADD_ARRAY_ELEMENT                                ~9      ~15
    2    12        ASSIGN                                                   !0, ~9
   11    13        ASSIGN                                                   !4, <array>
   13    14        INIT_FCALL                                               'array_keys'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '%24_SESSION'
         17        DO_ICALL                                         $18     
         18        ASSIGN                                                   !5, $18
   14    19      > JMPZ                                                     !5, ->28
   15    20    >   ASSIGN                                                   !6, <false>
   16    21      > FE_RESET_R                                       $21     !5, ->27
         22    > > FE_FETCH_R                                               $21, !7, ->27
   17    23    >   FETCH_DIM_R                                      ~23     !0, !7
         24        ASSIGN_DIM                                               !4
         25        OP_DATA                                                  ~23
   16    26      > JMP                                                      ->22
         27    >   FE_FREE                                                  $21
   21    28    >   INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.92 ms | 1396 KiB | 17 Q