3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $tmp = (array) $a; 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); } else if (var_dump(empty($tmp))) { echo "var_dump = true"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 27
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/0DKh2
function name:  (null)
number of ops:  34
compiled vars:  !0 = $a, !1 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        CAST                                          7  ~5      !0
          4        ASSIGN                                                   !1, ~5
    6     5        IS_EQUAL                                                 !0, null
          6      > JMPZ                                                     ~7, ->12
    7     7    >   ECHO                                                     'null'
    8     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > JMP                                                      ->33
    9    12    >   ISSET_ISEMPTY_CV                                         !0
         13      > JMPZ                                                     ~9, ->19
   10    14    >   ECHO                                                     'empty'
   11    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > JMP                                                      ->33
   12    19    >   ISSET_ISEMPTY_CV                                 ~11     !0
         20        BOOL_NOT                                         ~12     ~11
         21      > JMPZ                                                     ~12, ->27
   13    22    >   ECHO                                                     'set'
   14    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > JMP                                                      ->33
   15    27    >   INIT_FCALL                                               'var_dump'
         28        ISSET_ISEMPTY_CV                                 ~14     !1
         29        SEND_VAL                                                 ~14
         30        DO_ICALL                                         $15     
         31      > JMPZ                                                     $15, ->33
   16    32    >   ECHO                                                     'var_dump+%3D+true'
   17    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.3 ms | 1400 KiB | 17 Q