3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = []; $maybeZero = 2; if (count($arr) == $maybeZero) { } else { var_dump($arr); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/409Jp
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr, !1 = $maybeZero
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 2
    5     2        COUNT                                            ~4      !0
          3        IS_EQUAL                                                 !1, ~4
          4      > JMPZ                                                     ~5, ->6
          5    > > JMP                                                      ->9
    7     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    8     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.48 ms | 996 KiB | 14 Q