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 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 16
filename:       /in/T4Mkc
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $found, !2 = $grepped, !3 = $success, !4 = $found_key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, <array>
   13     2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '%24_SESSION'
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
   14     7      > JMPZ                                                     !2, ->16
   15     8    >   ASSIGN                                                   !3, <false>
   16     9      > FE_RESET_R                                       $10     !2, ->15
         10    > > FE_FETCH_R                                               $10, !4, ->15
   17    11    >   FETCH_DIM_R                                      ~12     !0, !4
         12        ASSIGN_DIM                                               !1
         13        OP_DATA                                                  ~12
   16    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $10
   21    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.73 ms | 1400 KiB | 17 Q