3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.61 ms | 1396 KiB | 15 Q