3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0 => null, 1 => null, 2 => null ); if(array_filter($array)) { echo "true\n"; } else echo "false\n"; $array[1] = "test"; if (array_filter($array)) { echo "true\n"; } else echo "false\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
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: 7
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
Branch analysis from position: 16
filename:       /in/adDVQ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4      > JMPZ                                                     $2, ->7
   11     5    >   ECHO                                                     'true%0A'
          6      > JMP                                                      ->8
   12     7    >   ECHO                                                     'false%0A'
   14     8    >   ASSIGN_DIM                                               !0, 1
          9        OP_DATA                                                  'test'
   17    10        INIT_FCALL                                               'array_filter'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13      > JMPZ                                                     $4, ->16
   18    14    >   ECHO                                                     'true%0A'
         15      > JMP                                                      ->17
   19    16    >   ECHO                                                     'false%0A'
         17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.86 ms | 1395 KiB | 15 Q