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 { echo "boh"; 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 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DI4uE
function name:  (null)
number of ops:  23
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                                                      ->22
    6    10    >   ISSET_ISEMPTY_CV                                 ~6      !0
         11        BOOL_NOT                                         ~7      ~6
         12      > JMPZ                                                     ~7, ->18
    7    13    >   ECHO                                                     'empty'
    8    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > JMP                                                      ->22
   10    18    >   ECHO                                                     'boh'
   11    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
   12    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.66 ms | 1395 KiB | 15 Q