3v4l.org

run code in 300+ PHP versions simultaneously
<?php $slaves = [ [], ['config'] ]; if (($key = array_search(0, array_map('count', $slaves))) && $key !== false) { echo 'bad config'; } else { echo 'good config'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
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: 13
filename:       /in/N8gnk
function name:  (null)
number of ops:  18
compiled vars:  !0 = $slaves, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_search'
          2        SEND_VAL                                                 0
          3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'count'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                           ~5      !1, $4
         10      > JMPZ_EX                                          ~5      ~5, ->13
         11    >   TYPE_CHECK                                  1018  ~6      !1
         12        BOOL                                             ~5      ~6
         13    > > JMPZ                                                     ~5, ->16
    9    14    >   ECHO                                                     'bad+config'
    8    15      > JMP                                                      ->17
   11    16    >   ECHO                                                     'good+config'
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.82 ms | 1002 KiB | 15 Q