3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = ['someKey' => 'someValue']; echo $var['someKey']; $wasSet = isset($var['aKey']); if ($wasSet) { echo "was set"; } else { echo "was not set"; } $possibleVar = $var['aKey']; if ($possibleVar) { echo "possible var: $possibleVar"; } else { echo "possible var is false: $possibleVar"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
Branch analysis from position: 16
filename:       /in/X73rZ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $var, !1 = $wasSet, !2 = $possibleVar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~4      !0, 'someKey'
          2        ECHO                                                     ~4
    7     3        ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !0, 'aKey'
          4        ASSIGN                                                   !1, ~5
    9     5      > JMPZ                                                     !1, ->8
   10     6    >   ECHO                                                     'was+set'
          7      > JMP                                                      ->9
   12     8    >   ECHO                                                     'was+not+set'
   15     9    >   FETCH_DIM_R                                      ~7      !0, 'aKey'
         10        ASSIGN                                                   !2, ~7
   17    11      > JMPZ                                                     !2, ->16
   18    12    >   NOP                                                      
         13        FAST_CONCAT                                      ~9      'possible+var%3A+', !2
         14        ECHO                                                     ~9
         15      > JMP                                                      ->19
   20    16    >   NOP                                                      
         17        FAST_CONCAT                                      ~10     'possible+var+is+false%3A+', !2
         18        ECHO                                                     ~10
   21    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.2 ms | 1398 KiB | 13 Q