3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = true; $f = false; $show1 = $f || $a; $show2 = $a; if ($show1) { // show 1 echo "show 1"; } if ($show2) { // show 2 echo "show 2"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 8
Branch analysis from position: 4
filename:       /in/ZCtM9
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $f, !2 = $show1, !3 = $show2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, <false>
    6     2      > JMPNZ_EX                                         ~6      !1, ->4
          3    >   BOOL                                             ~6      !0
          4    >   ASSIGN                                                   !2, ~6
    7     5        ASSIGN                                                   !3, !0
    9     6      > JMPZ                                                     !2, ->8
   11     7    >   ECHO                                                     'show+1'
   14     8    > > JMPZ                                                     !3, ->10
   16     9    >   ECHO                                                     'show+2'
   17    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.66 ms | 1397 KiB | 13 Q