3v4l.org

run code in 500+ PHP versions simultaneously
<?php // very slow $total = @$x; // looks weird $total = $x ?? null; // lengthy if (!isset($x)) { $total = null; } else { $total = $x; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y8IUC
function name:  (null)
number of ops:  14
compiled vars:  !0 = $total, !1 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   BEGIN_SILENCE                                        ~2      
          1        FETCH_R                          local               ~3      'x'
          2        END_SILENCE                                                  ~2
          3        ASSIGN                                                       !0, ~3
    7     4        COALESCE                                             ~5      !1
          5        QM_ASSIGN                                            ~5      null
          6        ASSIGN                                                       !0, ~5
   10     7        ISSET_ISEMPTY_CV                                     ~7      !1
          8        BOOL_NOT                                             ~8      ~7
          9      > JMPZ                                                         ~8, ->12
   11    10    >   ASSIGN                                                       !0, null
   10    11      > JMP                                                          ->13
   13    12    >   ASSIGN                                                       !0, !1
   16    13    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.13 ms | 1462 KiB | 13 Q