3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'a'; if (true) if ($var === 'a') echo 'ah-ha~!'; else if ($var === 'b') echo 'uhm...'; else echo 'uh-oh!';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/LY8jo
function name:  (null)
number of ops:  12
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a'
    4     1      > JMPZ                                                     <true>, ->11
    5     2    >   IS_IDENTICAL                                             !0, 'a'
          3      > JMPZ                                                     ~2, ->6
    6     4    >   ECHO                                                     'ah-ha%7E%21'
          5      > JMP                                                      ->11
    7     6    >   IS_IDENTICAL                                             !0, 'b'
          7      > JMPZ                                                     ~3, ->10
    8     8    >   ECHO                                                     'uhm...'
          9      > JMP                                                      ->11
    9    10    >   ECHO                                                     'uh-oh%21'
         11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.13 ms | 1393 KiB | 13 Q