3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('abcd', 'df43', 'asdfsa'); echo (String)$a[1]; foreach ($a as $val) { if ($val == '' || $val == false) { echo "$val".PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/OkJtc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        FETCH_DIM_R                                      ~3      !0, 1
          2        CAST                                          6  ~4      ~3
          3        ECHO                                                     ~4
    7     4      > FE_RESET_R                                       $5      !0, ->15
          5    > > FE_FETCH_R                                               $5, !1, ->15
    8     6    >   IS_EQUAL                                         ~6      !1, ''
          7      > JMPNZ_EX                                         ~6      ~6, ->10
          8    >   BOOL_NOT                                         ~7      !1
          9        BOOL                                             ~6      ~7
         10    > > JMPZ                                                     ~6, ->14
    9    11    >   CAST                                          6  ~8      !1
         12        CONCAT                                           ~9      ~8, '%0A'
         13        ECHO                                                     ~9
    7    14    > > JMP                                                      ->5
         15    >   FE_FREE                                                  $5
   11    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.62 ms | 1393 KiB | 13 Q