3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); if ($a == null) { echo "null"; print_r($a); } else if (empty($a)){ echo "empty"; print_r($a); }else if (!isset($a)){ echo "set"; print_r($a); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/rG932
function name:  (null)
number of ops:  25
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, ->10
    4     5    >   ECHO                                                     'null'
    5     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > JMP                                                      ->24
    6    10    >   ISSET_ISEMPTY_CV                                         !0
         11      > JMPZ                                                     ~6, ->17
    7    12    >   ECHO                                                     'empty'
    8    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > JMP                                                      ->24
    9    17    >   ISSET_ISEMPTY_CV                                 ~8      !0
         18        BOOL_NOT                                         ~9      ~8
         19      > JMPZ                                                     ~9, ->24
   10    20    >   ECHO                                                     'set'
   11    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   12    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.91 ms | 1395 KiB | 15 Q