3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = ['a', 'b', null, 'd']; $a2 = ['a', 'b', 'c', 'd']; if (count(array_filter($a1)) < count($a1)) { echo '$a1 has at least one empty value'; } if (count(array_filter($a2)) < count($a2)) { echo '$a2 has at least one empty value'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 10
filename:       /in/dkGPr
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'array_filter'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        COUNT                                            ~5      $4
          6        COUNT                                            ~6      !0
          7        IS_SMALLER                                               ~5, ~6
          8      > JMPZ                                                     ~7, ->10
    7     9    >   ECHO                                                     '%24a1+has+at+least+one+empty+value'
    9    10    >   INIT_FCALL                                               'array_filter'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        COUNT                                            ~9      $8
         14        COUNT                                            ~10     !1
         15        IS_SMALLER                                               ~9, ~10
         16      > JMPZ                                                     ~11, ->18
   10    17    >   ECHO                                                     '%24a2+has+at+least+one+empty+value'
   11    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
230.05 ms | 1001 KiB | 14 Q