3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_array_with_empty_strings_only($array) { if (!is_array($array)) return false; foreach ($array as $element) { if ($element != "") return true; } return false; } var_dump(is_array_with_empty_strings_only(array("", "", "", ""))); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CY5UE
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is_array_with_empty_strings_only'
          2        SEND_VAL                                                 <array>
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   12     6      > RETURN                                                   1

Function is_array_with_empty_strings_only:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/CY5UE
function name:  is_array_with_empty_strings_only
number of ops:  15
compiled vars:  !0 = $array, !1 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        TYPE_CHECK                                  128  ~2      !0
          2        BOOL_NOT                                         ~3      ~2
          3      > JMPZ                                                     ~3, ->5
          4    > > RETURN                                                   <false>
    4     5    > > FE_RESET_R                                       $4      !0, ->12
          6    > > FE_FETCH_R                                               $4, !1, ->12
    5     7    >   IS_NOT_EQUAL                                             !1, ''
          8      > JMPZ                                                     ~5, ->11
          9    >   FE_FREE                                                  $4
         10      > RETURN                                                   <true>
    4    11    > > JMP                                                      ->6
         12    >   FE_FREE                                                  $4
    8    13      > RETURN                                                   <false>
    9    14*     > RETURN                                                   null

End of function is_array_with_empty_strings_only

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.57 ms | 1399 KiB | 16 Q