3v4l.org

run code in 300+ PHP versions simultaneously
<?php $default = 'onions'; $topping = ''; echo ($topping || $default); $topping = 'mushrooms'; echo ($topping || $default);
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 = 47) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
Branch analysis from position: 4
filename:       /in/akpQd
function name:  (null)
number of ops:  10
compiled vars:  !0 = $default, !1 = $topping
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'onions'
    3     1        ASSIGN                                                   !1, ''
    4     2      > JMPNZ_EX                                         ~4      !1, ->4
          3    >   BOOL                                             ~4      !0
          4    >   ECHO                                                     ~4
    5     5        ASSIGN                                                   !1, 'mushrooms'
    6     6      > JMPNZ_EX                                         ~6      !1, ->8
          7    >   BOOL                                             ~6      !0
          8    >   ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.09 ms | 1392 KiB | 13 Q