3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array(); $test = false; if ( empty( $values ) || ( false !== $test && 'foo' !== $test ) ) { echo 'true'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 8
Branch analysis from position: 9
filename:       /in/rjUdE
function name:  (null)
number of ops:  12
compiled vars:  !0 = $values, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <false>
    6     2        ISSET_ISEMPTY_CV                                 ~4      !0
          3      > JMPNZ_EX                                         ~4      ~4, ->9
          4    >   TYPE_CHECK                                  1018  ~5      !1
          5      > JMPZ_EX                                          ~5      ~5, ->8
          6    >   IS_NOT_IDENTICAL                                 ~6      !1, 'foo'
          7        BOOL                                             ~5      ~6
          8    >   BOOL                                             ~4      ~5
          9    > > JMPZ                                                     ~4, ->11
    7    10    >   ECHO                                                     'true'
    8    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164 ms | 1397 KiB | 13 Q