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 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mu5qG
function name:  (null)
number of ops:  13
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                                                      ->12
    5     7    >   ISSET_ISEMPTY_CV                                         !0
          8      > JMPZ                                                     ~5, ->11
    6     9    >   ECHO                                                     'empty'
         10      > JMP                                                      ->12
    8    11    >   ECHO                                                     'boh'
    9    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.86 ms | 1384 KiB | 13 Q