3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.94 ms | 1384 KiB | 13 Q