3v4l.org

run code in 500+ PHP versions simultaneously
<?php //$justEnabled = !$isActiveBefore && $entity->isActive(); //if (!$justEnabled) { // return; //} $isActiveBefore = true; $entityIsActive = false; $justEnabled = !$isActiveBefore && $entityIsActive; var_dump($justEnabled); if (!$justEnabled) { return; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/fWSfn
function name:  (null)
number of ops:  13
compiled vars:  !0 = $isActiveBefore, !1 = $entityIsActive, !2 = $justEnabled
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                       !0, <true>
    9     1        ASSIGN                                                       !1, <false>
   11     2        BOOL_NOT                                             ~5      !0
          3      > JMPZ_EX                                              ~5      ~5, ->5
          4    >   BOOL                                                 ~5      !1
          5    >   ASSIGN                                                       !2, ~5
   12     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !2
          8        DO_ICALL                                                     
   13     9        BOOL_NOT                                             ~8      !2
         10      > JMPZ                                                         ~8, ->12
   14    11    > > RETURN                                                       null
   15    12    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.48 ms | 1450 KiB | 14 Q