3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected_array_got_string = 'somestring'; if (empty($expected_array_got_string['some_key'])) { echo 'foo'; } if (@$expected_array_got_string['some_key']) { echo 'foo'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 4
filename:       /in/MDEjO
function name:  (null)
number of ops:  10
compiled vars:  !0 = $expected_array_got_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'somestring'
    4     1        ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'some_key'
          2      > JMPZ                                                     ~2, ->4
    5     3    >   ECHO                                                     'foo'
    9     4    >   BEGIN_SILENCE                                    ~3      
          5        FETCH_DIM_R                                      ~4      !0, 'some_key'
          6        END_SILENCE                                              ~3
          7      > JMPZ                                                     ~4, ->9
   10     8    >   ECHO                                                     'foo'
   11     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.46 ms | 1392 KiB | 13 Q