3v4l.org

run code in 300+ PHP versions simultaneously
<?php $moved = 'foo'; echo 1; $isNotSet = !isset($moved); echo 2; $moveSuccess = true; echo 3; if(($isNotSet === true) || ($moveSuccess === true) || 1){ echo 4; }else{ echo 5; } echo 6;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 12
filename:       /in/iIkT5
function name:  (null)
number of ops:  20
compiled vars:  !0 = $moved, !1 = $isNotSet, !2 = $moveSuccess
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo'
    4     1        ECHO                                                     1
    5     2        ISSET_ISEMPTY_CV                                 ~4      !0
          3        BOOL_NOT                                         ~5      ~4
          4        ASSIGN                                                   !1, ~5
    6     5        ECHO                                                     2
    7     6        ASSIGN                                                   !2, <true>
    8     7        ECHO                                                     3
    9     8        TYPE_CHECK                                    8  ~8      !1
          9      > JMPNZ_EX                                         ~8      ~8, ->12
         10    >   TYPE_CHECK                                    8  ~9      !2
         11        BOOL                                             ~8      ~9
         12    > > JMPNZ_EX                                         ~8      ~8, ->14
         13    >   BOOL                                             ~8      1
         14    > > JMPZ                                                     ~8, ->17
   10    15    >   ECHO                                                     4
         16      > JMP                                                      ->18
   12    17    >   ECHO                                                     5
   14    18    >   ECHO                                                     6
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.79 ms | 1393 KiB | 13 Q