3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; $a = $i > 0 ? 1 : 2; echo " a " . $a; if ($i > 0) { $b = 1; } else { $b = 2; } echo " b " . $b;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
Branch analysis from position: 13
filename:       /in/TVcNr
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        IS_SMALLER                                               0, !0
          2      > JMPZ                                                     ~4, ->5
          3    >   QM_ASSIGN                                        ~5      1
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~5      2
          6    >   ASSIGN                                                   !1, ~5
    5     7        CONCAT                                           ~7      '+a+', !1
          8        ECHO                                                     ~7
    6     9        IS_SMALLER                                               0, !0
         10      > JMPZ                                                     ~8, ->13
    8    11    >   ASSIGN                                                   !2, 1
         12      > JMP                                                      ->14
   12    13    >   ASSIGN                                                   !2, 2
   14    14    >   CONCAT                                           ~11     '+b+', !2
         15        ECHO                                                     ~11
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.39 ms | 1398 KiB | 13 Q