3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 0; if ($max == "" || $max == null) { echo 'still ends up here'; } else if (!$max) { echo 'can never happen'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
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: 5
filename:       /in/2Ip6u
function name:  (null)
number of ops:  12
compiled vars:  !0 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        IS_EQUAL                                         ~2      !0, ''
          2      > JMPNZ_EX                                         ~2      ~2, ->5
          3    >   IS_EQUAL                                         ~3      !0, null
          4        BOOL                                             ~2      ~3
          5    > > JMPZ                                                     ~2, ->8
    4     6    >   ECHO                                                     'still+ends+up+here'
          7      > JMP                                                      ->11
    5     8    >   BOOL_NOT                                         ~4      !0
          9      > JMPZ                                                     ~4, ->11
    6    10    >   ECHO                                                     'can+never+happen'
    7    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.47 ms | 1384 KiB | 13 Q