3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); if ($a == null) { echo "null"; } else if (!empty($a)){ echo "empty"; }else { echo "boh"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2ihib
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        IS_EQUAL                                                 !0, null
          4      > JMPZ                                                     ~4, ->7
    4     5    >   ECHO                                                     'null'
          6      > JMP                                                      ->13
    5     7    >   ISSET_ISEMPTY_CV                                 ~5      !0
          8        BOOL_NOT                                         ~6      ~5
          9      > JMPZ                                                     ~6, ->12
    6    10    >   ECHO                                                     'empty'
         11      > JMP                                                      ->13
    8    12    >   ECHO                                                     'boh'
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.77 ms | 1393 KiB | 13 Q