3v4l.org

run code in 300+ PHP versions simultaneously
<?php $args = array( "A" => [], "B" => [], "C" => [], "D" => [], "E" => [], "F" => [], "G" => [], "H" => [] ); if(empty(array_merge(... array_values($args)))) echo "Given Array is empty"; else echo "Given Array is not empty";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oMl0k
function name:  (null)
number of ops:  14
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'array_merge'
          2        INIT_FCALL                                               'array_values'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_UNPACK                                              $2
          6        CHECK_UNDEF_ARGS                                         
          7        DO_ICALL                                         $3      
          8        BOOL_NOT                                         ~4      $3
          9      > JMPZ                                                     ~4, ->12
   16    10    >   ECHO                                                     'Given+Array+is+empty'
   15    11      > JMP                                                      ->13
   18    12    >   ECHO                                                     'Given+Array+is+not+empty'
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.86 ms | 1002 KiB | 15 Q