3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = array(0 , 0 , 0 , 0); $b = array_unique($a); if(count($b) === 0 || count($b) > 1 || $b[0] !== 0){ echo "No"; }else{ echo "All Zero"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 11
filename:       /in/RBRUe
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        INIT_FCALL                                                   'array_unique'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
    5     5        COUNT                                                ~5      !1
          6        IS_IDENTICAL                                         ~6      ~5, 0
          7      > JMPNZ_EX                                             ~6      ~6, ->11
          8    >   COUNT                                                ~7      !1
          9        IS_SMALLER                                           ~8      1, ~7
         10        BOOL                                                 ~6      ~8
         11    > > JMPNZ_EX                                             ~6      ~6, ->15
         12    >   FETCH_DIM_R                                          ~9      !1, 0
         13        IS_NOT_IDENTICAL                                     ~10     ~9, 0
         14        BOOL                                                 ~6      ~10
         15    > > JMPZ                                                         ~6, ->18
    6    16    >   ECHO                                                         'No'
    5    17      > JMP                                                          ->19
    8    18    >   ECHO                                                         'All+Zero'
    9    19    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.59 ms | 2096 KiB | 14 Q