3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(count($cmcs = array(1, 2, 3, 4)) > 2) { echo "yes"; } else { echo "no"; } echo "<br/><br/>"; if(count($other = array(5, 56)) > 2) { echo "it is"; } else { echo "it is not"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
filename:       /in/Bqa2F
function name:  (null)
number of ops:  16
compiled vars:  !0 = $cmcs, !1 = $other
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~2      !0, <array>
          1        COUNT                                            ~3      ~2
          2        IS_SMALLER                                               2, ~3
          3      > JMPZ                                                     ~4, ->6
    5     4    >   ECHO                                                     'yes'
          5      > JMP                                                      ->7
    9     6    >   ECHO                                                     'no'
   12     7    >   ECHO                                                     '%3Cbr%2F%3E%3Cbr%2F%3E'
   14     8        ASSIGN                                           ~5      !1, <array>
          9        COUNT                                            ~6      ~5
         10        IS_SMALLER                                               2, ~6
         11      > JMPZ                                                     ~7, ->14
   16    12    >   ECHO                                                     'it+is'
         13      > JMP                                                      ->15
   20    14    >   ECHO                                                     'it+is+not'
   21    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.1 ms | 1394 KiB | 13 Q